diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt new file mode 100644 index 00000000..6c8dc758 --- /dev/null +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt @@ -0,0 +1,17869 @@ +2021-11-03 12:35:03.550 G Starting web host. +2021-11-03 12:35:11.350 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:35:12.040 G Loaded ABP modules: +2021-11-03 12:35:12.042 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:35:12.043 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:35:12.043 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:35:12.044 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:35:12.044 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:35:12.045 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:35:12.046 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:35:12.046 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:35:12.047 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:35:12.047 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:35:12.048 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:35:12.048 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:35:12.048 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:35:12.049 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:35:12.049 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:35:12.050 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:35:12.050 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:35:12.051 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:35:12.051 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:35:12.052 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:35:12.052 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:35:12.053 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:35:12.053 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:35:12.054 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:35:12.054 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:35:12.054 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:35:12.055 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:35:12.056 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:35:12.056 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:35:12.057 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:35:12.058 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:35:12.058 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:35:12.059 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:35:12.060 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:35:12.066 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:35:12.068 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:35:12.068 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:35:12.069 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:35:12.070 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:35:12.070 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:35:12.071 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:35:12.071 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:35:12.072 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:35:12.073 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:35:12.073 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:35:12.074 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:35:12.075 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:35:12.075 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:35:12.079 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:35:12.081 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:35:12.082 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:35:12.083 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:35:12.084 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:35:12.085 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:35:12.089 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:35:12.090 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:35:12.090 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:35:12.091 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:35:12.093 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:35:12.094 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:35:12.096 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:35:12.096 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.097 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:35:12.098 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.099 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:35:12.099 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:35:12.100 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:35:12.100 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:35:12.101 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:35:12.102 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.102 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:35:12.103 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:35:12.103 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:35:12.104 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:35:12.104 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:35:12.105 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:35:12.106 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:35:12.106 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:35:12.107 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:35:12.111 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:35:12.112 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:35:12.178 G Start installing Hangfire SQL objects... +2021-11-03 12:35:12.329 G Hangfire SQL objects installed. +2021-11-03 12:35:12.339 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:35:12.341 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:35:12.342 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:35:12.391 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:35:12.392 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:35:12.393 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:35:12.681 G Server sk-20210819huao:21292:f902846a successfully announced in 241.6335 ms +2021-11-03 12:35:12.681 G Server sk-20210819huao:21292:0cc5df85 successfully announced in 314.0325 ms +2021-11-03 12:35:12.692 G Server sk-20210819huao:21292:f902846a is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:35:12.692 G Server sk-20210819huao:21292:0cc5df85 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:35:12.729 G 2 servers were removed due to timeout +2021-11-03 12:35:12.949 G Server sk-20210819huao:21292:f902846a all the dispatchers started +2021-11-03 12:35:12.949 G Server sk-20210819huao:21292:0cc5df85 all the dispatchers started +2021-11-03 12:35:14.175 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:14.565 G Executed DbCommand ("30"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.665 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.673 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.677 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.686 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.691 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.696 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.701 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.705 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.709 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.718 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.722 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.726 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.733 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.737 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.740 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.749 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.753 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.758 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.766 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.770 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.778 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.782 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.786 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.792 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.795 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.799 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.807 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.811 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.815 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.822 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.826 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.835 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.840 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.844 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.849 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.857 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.861 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.871 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.882 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.888 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.892 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.896 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.905 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.909 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.919 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.923 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.928 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.933 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.937 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.941 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.949 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.955 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.965 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.970 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.974 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.984 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.988 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.996 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.000 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.004 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.013 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.050 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.057 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.063 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.075 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.082 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.096 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.107 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.114 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.126 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.139 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.149 G Executed DbCommand ("4"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.157 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.447 G Initialized all ABP modules. +2021-11-03 12:35:15.535 G Now listening on: "http://localhost:44378" +2021-11-03 12:35:15.536 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:35:15.537 G Hosting environment: "Development" +2021-11-03 12:35:15.538 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:35:17.328 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:35:18.197 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:18.214 G Executed DbCommand ("2"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 12:35:18.345 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:18.351 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 12:35:18.504 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:35:18.597 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:35:18.644 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:35:18.657 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 44.0537ms +2021-11-03 12:35:18.659 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:35:18.687 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1361.5728ms +2021-11-03 12:35:18.711 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:35:18.803 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 92.8553ms +2021-11-03 12:35:18.971 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:35:19.974 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1003.0392ms +2021-11-03 12:36:27.725 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryBDGZJp4SF0M4BohV 170569 +2021-11-03 12:36:27.731 G CORS policy execution failed. +2021-11-03 12:36:27.731 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:36:27.736 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:36:27.754 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:36:29.076 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.079 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.080 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.081 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.082 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.084 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.085 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.086 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.088 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.089 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.090 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.094 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.096 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.097 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.098 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.100 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.101 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.103 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.106 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.109 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.111 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.112 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.114 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.115 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.116 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.117 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.118 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.120 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.121 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.126 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.128 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.129 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.130 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.132 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.134 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.135 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.136 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.139 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.141 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.142 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.143 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.145 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.146 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.147 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.148 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.150 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.151 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.153 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.158 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.159 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.160 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.161 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.163 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.164 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.165 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.166 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.168 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.173 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.174 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.175 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.177 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.178 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.180 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.181 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.182 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.183 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.188 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.189 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.190 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.192 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.193 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.194 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.195 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.196 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.198 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.199 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.204 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.205 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.207 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.208 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.209 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.210 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.211 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.213 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.214 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.215 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.221 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.223 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.224 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.225 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.226 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.227 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.228 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.229 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.231 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.234 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.237 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.238 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.288 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:36:29.314 G Executed DbCommand ("2"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:50:41.657 G Starting web host. +2021-11-03 12:50:50.031 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:50:50.109 G Loaded ABP modules: +2021-11-03 12:50:50.111 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:50:50.112 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:50:50.112 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:50:50.113 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:50:50.113 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:50:50.113 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:50:50.114 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:50:50.114 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:50:50.115 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:50:50.115 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:50:50.116 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:50:50.116 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:50:50.117 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:50:50.117 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:50:50.118 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:50:50.118 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:50:50.118 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:50:50.119 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:50:50.119 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:50:50.120 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:50:50.120 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:50:50.121 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:50:50.121 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:50:50.122 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:50:50.122 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:50:50.123 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:50:50.123 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:50:50.124 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:50:50.125 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:50:50.126 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:50:50.131 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:50:50.133 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:50:50.134 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:50:50.135 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:50:50.135 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:50:50.136 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:50:50.137 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:50:50.137 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:50:50.138 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:50:50.139 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:50:50.140 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:50:50.140 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:50:50.141 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:50:50.144 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:50:50.145 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:50:50.147 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:50:50.147 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:50:50.148 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:50:50.149 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:50:50.149 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:50:50.150 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:50:50.151 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:50:50.152 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:50:50.152 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:50:50.153 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:50:50.154 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:50:50.155 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:50:50.155 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:50:50.156 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:50:50.157 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:50:50.158 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:50:50.164 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.165 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:50:50.166 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.167 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:50:50.168 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:50:50.168 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:50:50.169 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:50:50.170 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:50:50.171 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.171 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:50:50.172 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:50:50.173 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:50:50.174 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:50:50.176 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:50:50.178 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:50:50.178 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:50:50.179 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:50:50.180 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:50:50.181 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:50:50.181 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:50:50.260 G Start installing Hangfire SQL objects... +2021-11-03 12:50:50.425 G Hangfire SQL objects installed. +2021-11-03 12:50:50.441 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:50:50.443 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:50:50.446 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:50:50.517 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:50:50.520 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:50:50.521 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:50:50.767 G Server sk-20210819huao:60836:d04ff72c successfully announced in 274.6402 ms +2021-11-03 12:50:50.767 G Server sk-20210819huao:60836:6b197147 successfully announced in 238.6253 ms +2021-11-03 12:50:50.780 G Server sk-20210819huao:60836:d04ff72c is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:50:50.780 G Server sk-20210819huao:60836:6b197147 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:50:50.823 G 2 servers were removed due to timeout +2021-11-03 12:50:51.078 G Server sk-20210819huao:60836:d04ff72c all the dispatchers started +2021-11-03 12:50:51.095 G Server sk-20210819huao:60836:6b197147 all the dispatchers started +2021-11-03 12:50:52.524 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:50:52.851 G Executed DbCommand ("33"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.944 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.949 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.953 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.962 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.967 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.973 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.977 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.982 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.987 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.991 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.997 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.002 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.006 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.010 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.019 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.023 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.027 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.033 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.036 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.040 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.047 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.051 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.057 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.063 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.067 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.071 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.076 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.082 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.088 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.094 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.099 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.103 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.108 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.118 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.123 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.131 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.136 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.145 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.151 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.162 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.167 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.172 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.180 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.184 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.194 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.199 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.204 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.213 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.217 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.224 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.229 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.233 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.241 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.246 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.261 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.266 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.272 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.277 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.281 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.292 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.297 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.307 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.312 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.319 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.323 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.328 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.334 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.339 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.343 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.354 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.361 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.715 G Initialized all ABP modules. +2021-11-03 12:50:53.816 G Now listening on: "http://localhost:44378" +2021-11-03 12:50:53.819 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:50:53.820 G Hosting environment: "Development" +2021-11-03 12:50:53.822 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:50:55.635 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:50:56.741 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:50:56.800 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:50:56.842 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:50:56.850 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 39.5621ms +2021-11-03 12:50:56.852 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:50:56.873 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1240.1635ms +2021-11-03 12:50:56.891 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:50:56.965 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 73.8828ms +2021-11-03 12:50:57.112 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:50:58.150 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1038.0763ms +2021-11-03 12:51:22.321 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarywz0QuLXvDxiRXXTz 170569 +2021-11-03 12:51:22.327 G CORS policy execution failed. +2021-11-03 12:51:22.328 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:51:22.333 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:51:22.348 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:51:23.629 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.632 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.633 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.634 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.635 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.637 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.638 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.639 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.641 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.642 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.644 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.649 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.650 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.652 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.653 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.654 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.656 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.657 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.659 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.660 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.666 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.667 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.668 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.669 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.671 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.672 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.673 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.675 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.680 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.682 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.684 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.685 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.686 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.687 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.688 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.690 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.691 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.696 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.698 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.699 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.700 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.702 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.703 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.704 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.705 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.706 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.712 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.714 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.715 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.716 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.717 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.719 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.720 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.721 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.722 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.726 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.728 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.729 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.730 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.732 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.733 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.735 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.736 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.737 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.738 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.745 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.746 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.747 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.748 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.750 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.751 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.752 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.753 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.754 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.757 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.759 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.760 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.762 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.763 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.764 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.766 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.767 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.768 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.769 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.773 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.774 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.775 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.777 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.778 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.779 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.780 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.781 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.782 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.783 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.784 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.789 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.790 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.791 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.836 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:51:23.864 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:54:09.387 G Starting web host. +2021-11-03 12:54:17.201 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:54:18.179 G Loaded ABP modules: +2021-11-03 12:54:18.180 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:54:18.180 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:54:18.181 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:54:18.181 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:54:18.181 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:54:18.182 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:54:18.182 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:54:18.182 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:54:18.183 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:54:18.183 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:54:18.184 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:54:18.184 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:54:18.184 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:54:18.185 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:54:18.186 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:54:18.186 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:54:18.187 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:54:18.187 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:54:18.187 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:54:18.188 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:54:18.188 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:54:18.189 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:54:18.189 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:54:18.189 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:54:18.190 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:54:18.190 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:54:18.190 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:54:18.191 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:54:18.192 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:54:18.192 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:54:18.193 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:54:18.194 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:54:18.194 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:54:18.195 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:54:18.196 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:54:18.196 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:54:18.197 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:54:18.198 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:54:18.198 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:54:18.199 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:54:18.200 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:54:18.200 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:54:18.206 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:54:18.207 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:54:18.208 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:54:18.209 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:54:18.210 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:54:18.210 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:54:18.211 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:54:18.212 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:54:18.213 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:54:18.213 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:54:18.214 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:54:18.215 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:54:18.216 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:54:18.216 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:54:18.219 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:54:18.221 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:54:18.222 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:54:18.223 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:54:18.224 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:54:18.225 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.226 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:54:18.227 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.228 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:54:18.230 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:54:18.232 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:54:18.235 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:54:18.236 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:54:18.237 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.238 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:54:18.239 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:54:18.241 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:54:18.242 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:54:18.244 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:54:18.247 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:54:18.248 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:54:18.250 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:54:18.251 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:54:18.253 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:54:18.254 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:54:18.335 G Start installing Hangfire SQL objects... +2021-11-03 12:54:18.475 G Hangfire SQL objects installed. +2021-11-03 12:54:18.490 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:54:18.491 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:54:18.492 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:54:18.546 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:54:18.546 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:54:18.554 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:54:18.747 G Server sk-20210819huao:59048:40afebbf successfully announced in 222.5826 ms +2021-11-03 12:54:18.747 G Server sk-20210819huao:59048:8abe8bd5 successfully announced in 187.0031 ms +2021-11-03 12:54:18.760 G Server sk-20210819huao:59048:40afebbf is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:54:18.760 G Server sk-20210819huao:59048:8abe8bd5 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:54:18.978 G Server sk-20210819huao:59048:40afebbf all the dispatchers started +2021-11-03 12:54:18.999 G Server sk-20210819huao:59048:8abe8bd5 all the dispatchers started +2021-11-03 12:54:20.574 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:54:21.029 G Executed DbCommand ("43"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.154 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.164 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.170 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.183 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.188 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.197 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.201 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.205 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.216 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.221 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.228 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.232 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.237 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.245 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.260 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.270 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.276 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.281 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.294 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.298 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.306 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.310 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.314 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.321 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.327 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.341 G Executed DbCommand ("6"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.352 G Executed DbCommand ("7"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.364 G Executed DbCommand ("4"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.373 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.382 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.389 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.402 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.413 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.419 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.425 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.433 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.438 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.448 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.454 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.464 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.469 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.479 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.485 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.494 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.500 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.509 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.514 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.523 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.534 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.541 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.547 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.560 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.566 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.572 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.578 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.589 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.596 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.602 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.607 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.613 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.623 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.632 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.637 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.642 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.649 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.654 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.667 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.672 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.678 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.683 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.689 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:22.054 G Initialized all ABP modules. +2021-11-03 12:54:22.159 G Now listening on: "http://localhost:44378" +2021-11-03 12:54:22.161 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:54:22.162 G Hosting environment: "Development" +2021-11-03 12:54:22.164 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:54:23.277 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:54:24.171 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:54:24.221 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:54:24.247 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:54:24.254 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 26.6636ms +2021-11-03 12:54:24.255 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:54:24.270 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1001.6061ms +2021-11-03 12:54:24.286 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:54:24.350 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 64.4599ms +2021-11-03 12:54:24.476 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:54:25.223 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 746.7087ms +2021-11-03 12:54:53.245 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundary64cnCxBJKBSwHvN4 170569 +2021-11-03 12:54:53.252 G CORS policy execution failed. +2021-11-03 12:54:53.253 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:54:53.257 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:54:53.271 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:55:01.465 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.467 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.468 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.469 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.472 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.473 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.474 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.476 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.478 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.479 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.481 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.482 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.484 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.485 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.490 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.491 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.492 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.494 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.495 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.497 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.498 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.500 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.501 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.502 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.506 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.509 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.511 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.512 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.514 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.515 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.516 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.517 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.520 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.522 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.523 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.524 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.525 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.528 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.530 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.531 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.532 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.533 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.537 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.538 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.539 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.541 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.542 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.543 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.544 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.545 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.546 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.548 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.549 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.553 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.555 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.556 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.557 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.558 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.560 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.561 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.562 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.564 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.565 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.568 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.569 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.571 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.572 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.573 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.574 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.576 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.577 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.578 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.579 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.580 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.581 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.586 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.588 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.589 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.590 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.591 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.592 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.594 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.595 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.596 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.597 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.600 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.602 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.603 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.604 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.605 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.606 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.607 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.608 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.609 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.610 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.611 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.612 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.617 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.664 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:55:01.689 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:55:02.826 G ---------- RemoteServiceErrorInfo ---------- +{ + "code": "8989", + "message": "\u7B2C3258\u884C*\u91D1\u989Dvalue Invalid, please fill in the correct decimal!|", + "details": "BusinessException: \u7B2C3258\u884C*\u91D1\u989Dvalue Invalid, please fill in the correct decimal!|\r\nSTACK TRACE: at Win.Sfs.SettleAccount.ExcelImporter.ExportImporter.UploadExcelImport[T](IFormFileCollection files, IExcelImportAppService _excelImportService) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\ImportExcelCommon\\ExportImporter.cs:line 154\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\Entities\\Prices\\PriceListAppService.cs:line 166\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at lambda_method1209(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeActionMethodAsync\u003Eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask\u00601 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeNextActionFilterAsync\u003Eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeInnerFilterAsync\u003Eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003CInvokeNextExceptionFilterAsync\u003Eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n", + "data": null, + "validationErrors": null +} + +2021-11-03 12:55:02.834 G 第3258行*金额value Invalid, please fill in the correct decimal!| +Volo.Abp.BusinessException: 第3258行*金额value Invalid, please fill in the correct decimal!| + at Win.Sfs.SettleAccount.ExcelImporter.ExportImporter.UploadExcelImport[T](IFormFileCollection files, IExcelImportAppService _excelImportService) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\ImportExcelCommon\ExportImporter.cs:line 154 + at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\Entities\Prices\PriceListAppService.cs:line 166 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1209(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2021-11-03 12:55:02.850 G Code:8989 +2021-11-03 12:55:02.851 G Details: +2021-11-03 12:55:02.862 G Executing "ObjectResult", writing value of type '"Volo.Abp.Http.RemoteServiceErrorResponse"'. +2021-11-03 12:55:02.873 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 9595.7101ms +2021-11-03 12:55:02.876 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:55:02.953 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:55:03.152 G Executed DbCommand ("3"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 12:55:03.165 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:55:03.171 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:55:03.207 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundary64cnCxBJKBSwHvN4 170569 - 403 - application/json;+charset=utf-8 9962.2003ms +2021-11-03 12:56:46.465 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundaryQjiQfhmBG1wocRJV 12097 +2021-11-03 12:56:46.473 G CORS policy execution failed. +2021-11-03 12:56:46.474 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:56:46.476 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:56:46.478 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:56:48.191 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:56:48.202 G Executed DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:56:51.547 G ---------- RemoteServiceErrorInfo ---------- +{ + "code": null, + "message": "\u8FDD\u53CD\u4E86 PRIMARY KEY \u7EA6\u675F\u201CPK_Set_PriceList\u201D\u3002\u4E0D\u80FD\u5728\u5BF9\u8C61\u201Cdbo.Set_PriceList\u201D\u4E2D\u63D2\u5165\u91CD\u590D\u952E\u3002\u91CD\u590D\u952E\u503C\u4E3A (00000000-0000-0000-0000-000000000000)\u3002\r\n\u8BED\u53E5\u5DF2\u7EC8\u6B62\u3002", + "details": "SqlException: \u8FDD\u53CD\u4E86 PRIMARY KEY \u7EA6\u675F\u201CPK_Set_PriceList\u201D\u3002\u4E0D\u80FD\u5728\u5BF9\u8C61\u201Cdbo.Set_PriceList\u201D\u4E2D\u63D2\u5165\u91CD\u590D\u952E\u3002\u91CD\u590D\u952E\u503C\u4E3A (00000000-0000-0000-0000-000000000000)\u3002\r\n\u8BED\u53E5\u5DF2\u7EC8\u6B62\u3002\r\nSTACK TRACE: at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action\u00601 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action\u00601 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean\u0026 dataReady)\r\n at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n--- End of stack trace from previous location ---\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken, Boolean isAsync)\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken, Boolean isAsync)\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken)\r\n at EFCore.BulkExtensions.SqlBulkOperation.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken)\r\n at EFCore.BulkExtensions.DbContextBulkTransaction.ExecuteAsync[T](DbContext context, Type type, IList\u00601 entities, OperationType operationType, BulkConfig bulkConfig, Action\u00601 progress, CancellationToken cancellationToken)\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListManager.ImportAsync(List\u00601 entities, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Domain\\Entities\\Prices\\PriceListManager.cs:line 75\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\Entities\\Prices\\PriceListAppService.cs:line 191\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at lambda_method1209(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeActionMethodAsync\u003Eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask\u00601 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeNextActionFilterAsync\u003Eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeInnerFilterAsync\u003Eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003CInvokeNextExceptionFilterAsync\u003Eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n", + "data": null, + "validationErrors": null +} + +2021-11-03 12:56:51.558 G 违反了 PRIMARY KEY 约束“PK_Set_PriceList”。不能在对象“dbo.Set_PriceList”中插入重复键。重复键值为 (00000000-0000-0000-0000-000000000000)。 +语句已终止。 +Microsoft.Data.SqlClient.SqlException (0x80131904): 违反了 PRIMARY KEY 约束“PK_Set_PriceList”。不能在对象“dbo.Set_PriceList”中插入重复键。重复键值为 (00000000-0000-0000-0000-000000000000)。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) + at Microsoft.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source) +--- End of stack trace from previous location --- + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken, Boolean isAsync) + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken, Boolean isAsync) + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken) + at EFCore.BulkExtensions.SqlBulkOperation.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken) + at EFCore.BulkExtensions.DbContextBulkTransaction.ExecuteAsync[T](DbContext context, Type type, IList`1 entities, OperationType operationType, BulkConfig bulkConfig, Action`1 progress, CancellationToken cancellationToken) + at Win.Sfs.SettleAccount.Entities.Prices.PriceListManager.ImportAsync(List`1 entities, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Domain\Entities\Prices\PriceListManager.cs:line 75 + at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\Entities\Prices\PriceListAppService.cs:line 191 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1209(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +ClientConnectionId:abe907d9-0f81-4b49-8e29-a876816da9a0 +Error Number:2627,State:1,Class:14 +2021-11-03 12:56:51.593 G ---------- Exception Data ---------- +HelpLink.ProdName = Microsoft SQL Server +HelpLink.ProdVer = 13.00.1601 +HelpLink.EvtSrc = MSSQLServer +HelpLink.EvtID = 2627 +HelpLink.BaseHelpUrl = https://go.microsoft.com/fwlink +HelpLink.LinkId = 20476 + +2021-11-03 12:56:51.597 G Executing "ObjectResult", writing value of type '"Volo.Abp.Http.RemoteServiceErrorResponse"'. +2021-11-03 12:56:51.599 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 5119.8392ms +2021-11-03 12:56:51.601 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:56:51.607 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:56:51.613 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 12:56:51.617 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:56:51.619 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:56:51.622 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundaryQjiQfhmBG1wocRJV 12097 - 500 - application/json;+charset=utf-8 5157.0817ms +2021-11-03 13:02:46.058 G Starting web host. +2021-11-03 13:02:54.873 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 13:02:54.955 G Loaded ABP modules: +2021-11-03 13:02:54.956 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 13:02:54.956 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 13:02:54.957 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 13:02:54.957 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 13:02:54.958 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 13:02:54.958 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 13:02:54.959 G - Volo.Abp.Data.AbpDataModule +2021-11-03 13:02:54.959 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 13:02:54.960 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 13:02:54.960 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 13:02:54.961 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 13:02:54.961 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 13:02:54.962 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 13:02:54.962 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 13:02:54.963 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 13:02:54.963 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 13:02:54.964 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 13:02:54.964 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 13:02:54.968 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 13:02:54.968 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 13:02:54.969 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 13:02:54.969 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 13:02:54.970 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 13:02:54.970 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 13:02:54.971 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 13:02:54.971 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 13:02:54.972 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 13:02:54.972 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 13:02:54.974 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 13:02:54.975 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 13:02:54.976 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 13:02:54.978 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 13:02:54.979 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 13:02:54.984 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 13:02:54.985 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 13:02:54.987 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 13:02:54.988 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 13:02:54.990 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 13:02:54.991 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 13:02:54.992 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 13:02:54.993 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 13:02:54.994 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 13:02:54.995 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 13:02:54.996 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 13:02:55.000 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 13:02:55.002 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 13:02:55.002 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 13:02:55.003 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 13:02:55.004 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 13:02:55.005 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 13:02:55.006 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 13:02:55.006 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 13:02:55.007 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 13:02:55.008 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 13:02:55.009 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 13:02:55.010 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 13:02:55.011 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 13:02:55.011 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 13:02:55.012 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 13:02:55.017 G - Volo.Abp.UI.AbpUiModule +2021-11-03 13:02:55.018 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 13:02:55.020 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.021 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 13:02:55.022 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.023 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 13:02:55.024 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 13:02:55.025 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 13:02:55.027 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 13:02:55.027 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 13:02:55.030 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.031 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 13:02:55.033 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 13:02:55.033 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 13:02:55.034 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 13:02:55.035 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 13:02:55.035 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 13:02:55.036 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 13:02:55.037 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 13:02:55.038 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 13:02:55.040 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 13:02:55.041 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 13:02:55.138 G Start installing Hangfire SQL objects... +2021-11-03 13:02:55.354 G Hangfire SQL objects installed. +2021-11-03 13:02:55.372 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:02:55.375 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:02:55.379 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:02:55.462 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:02:55.464 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:02:55.466 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:02:55.804 G Server sk-20210819huao:60512:e7979986 successfully announced in 366.8391 ms +2021-11-03 13:02:55.804 G Server sk-20210819huao:60512:860c3714 successfully announced in 323.7844 ms +2021-11-03 13:02:55.817 G Server sk-20210819huao:60512:e7979986 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:02:55.817 G Server sk-20210819huao:60512:860c3714 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:02:55.851 G 4 servers were removed due to timeout +2021-11-03 13:02:56.162 G Server sk-20210819huao:60512:e7979986 all the dispatchers started +2021-11-03 13:02:56.181 G Server sk-20210819huao:60512:860c3714 all the dispatchers started +2021-11-03 13:02:57.352 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:02:57.697 G Executed DbCommand ("43"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.801 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.805 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.810 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.817 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.822 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.826 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.832 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.838 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.846 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.851 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.855 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.865 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.869 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.873 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.884 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.888 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.896 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.902 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.907 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.912 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.916 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.920 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.929 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.934 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.939 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.944 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.948 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.952 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.956 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.961 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.970 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.980 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.984 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.990 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.995 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.999 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.004 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.013 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.017 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.023 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.028 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.032 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.040 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.045 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.050 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.056 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.061 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.066 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.075 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.080 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.088 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.092 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.099 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.106 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.112 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.120 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.126 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.135 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.140 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.145 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.151 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.156 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.160 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.168 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.172 G Executed DbCommand ("0"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.177 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.181 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.185 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.189 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.199 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.203 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.208 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.216 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.531 G Initialized all ABP modules. +2021-11-03 13:02:58.627 G Now listening on: "http://localhost:44378" +2021-11-03 13:02:58.628 G Application started. Press Ctrl+C to shut down. +2021-11-03 13:02:58.629 G Hosting environment: "Development" +2021-11-03 13:02:58.630 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 13:02:59.763 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 13:03:00.724 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:03:00.789 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 13:03:00.820 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 13:03:00.830 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 29.1723ms +2021-11-03 13:03:00.832 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:03:00.849 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1089.2536ms +2021-11-03 13:03:00.866 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 13:03:00.929 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 63.1121ms +2021-11-03 13:03:01.068 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 13:03:01.962 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 893.5367ms +2021-11-03 13:03:38.862 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryvTpZg5fFVE9QhNML 170551 +2021-11-03 13:03:38.881 G CORS policy execution failed. +2021-11-03 13:03:38.882 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:03:38.886 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:03:38.900 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:03:42.888 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.890 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.891 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.893 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.894 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.897 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.899 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.902 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.903 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.905 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.906 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.907 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.909 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.910 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.912 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.913 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.915 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.918 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.920 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.921 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.923 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.924 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.926 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.927 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.929 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.930 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.934 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.936 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.937 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.939 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.940 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.941 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.942 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.943 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.945 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.946 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.951 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.953 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.954 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.956 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.957 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.958 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.960 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.962 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.966 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.967 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.968 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.970 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.971 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.972 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.973 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.974 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.976 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.980 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.982 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.983 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.984 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.985 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.986 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.988 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.989 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.990 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.996 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.997 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.998 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.000 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.001 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.002 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.004 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.005 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.006 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.007 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.012 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.013 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.014 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.015 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.017 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.018 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.019 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.020 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.021 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.023 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.027 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.028 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.030 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.031 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.032 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.033 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.034 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.035 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.037 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.038 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.042 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.043 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.045 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.046 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.047 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.049 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.096 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:03:43.119 G Executed DbCommand ("2"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 13:03:48.034 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:03:48.037 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 9135.3637ms +2021-11-03 13:03:48.039 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:03:48.110 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:03:48.274 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:03:48.288 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:03:48.290 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:03:48.321 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryvTpZg5fFVE9QhNML 170551 - 200 - text/plain;+charset=utf-8 9458.3328ms +2021-11-03 13:04:04.891 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryoKavfJHAzEFrv5sB 12097 +2021-11-03 13:04:04.899 G CORS policy execution failed. +2021-11-03 13:04:04.900 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:04:04.902 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:04:04.904 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:04:06.719 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:04:06.727 G Executed DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 13:04:07.757 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:04:07.759 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2848.4079ms +2021-11-03 13:04:07.760 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:04:07.762 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:04:07.766 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:04:07.776 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:04:07.779 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:04:07.783 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryoKavfJHAzEFrv5sB 12097 - 200 - text/plain;+charset=utf-8 2892.3439ms +2021-11-03 13:53:29.607 G Starting web host. +2021-11-03 13:53:38.038 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 13:53:38.101 G Loaded ABP modules: +2021-11-03 13:53:38.102 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 13:53:38.102 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 13:53:38.103 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 13:53:38.103 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 13:53:38.104 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 13:53:38.104 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 13:53:38.105 G - Volo.Abp.Data.AbpDataModule +2021-11-03 13:53:38.105 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 13:53:38.105 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 13:53:38.106 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 13:53:38.106 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 13:53:38.107 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 13:53:38.108 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 13:53:38.109 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 13:53:38.110 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 13:53:38.110 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 13:53:38.111 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 13:53:38.111 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 13:53:38.112 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 13:53:38.112 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 13:53:38.113 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 13:53:38.113 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 13:53:38.113 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 13:53:38.114 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 13:53:38.114 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 13:53:38.115 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 13:53:38.115 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 13:53:38.116 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 13:53:38.116 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 13:53:38.117 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 13:53:38.117 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 13:53:38.118 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 13:53:38.118 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 13:53:38.119 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 13:53:38.119 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 13:53:38.120 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 13:53:38.120 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 13:53:38.121 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 13:53:38.121 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 13:53:38.122 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 13:53:38.123 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 13:53:38.124 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 13:53:38.124 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 13:53:38.125 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 13:53:38.126 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 13:53:38.126 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 13:53:38.127 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 13:53:38.127 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 13:53:38.128 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 13:53:38.128 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 13:53:38.129 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 13:53:38.129 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 13:53:38.130 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 13:53:38.130 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 13:53:38.131 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 13:53:38.131 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 13:53:38.132 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 13:53:38.132 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 13:53:38.133 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 13:53:38.133 G - Volo.Abp.UI.AbpUiModule +2021-11-03 13:53:38.134 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 13:53:38.134 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.135 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 13:53:38.135 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.136 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 13:53:38.136 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 13:53:38.137 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 13:53:38.137 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 13:53:38.138 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 13:53:38.140 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.142 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 13:53:38.142 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 13:53:38.143 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 13:53:38.144 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 13:53:38.144 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 13:53:38.145 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 13:53:38.145 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 13:53:38.148 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 13:53:38.149 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 13:53:38.150 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 13:53:38.150 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 13:53:38.210 G Start installing Hangfire SQL objects... +2021-11-03 13:53:38.334 G Hangfire SQL objects installed. +2021-11-03 13:53:38.345 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:53:38.346 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:53:38.347 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:53:38.391 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:53:38.392 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:53:38.392 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:53:38.578 G Server sk-20210819huao:65672:f8ebe523 successfully announced in 179.9837 ms +2021-11-03 13:53:38.578 G Server sk-20210819huao:65672:34ef1a04 successfully announced in 204.1903 ms +2021-11-03 13:53:38.587 G Server sk-20210819huao:65672:f8ebe523 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:53:38.587 G Server sk-20210819huao:65672:34ef1a04 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:53:38.617 G 2 servers were removed due to timeout +2021-11-03 13:53:38.794 G Server sk-20210819huao:65672:f8ebe523 all the dispatchers started +2021-11-03 13:53:38.818 G Server sk-20210819huao:65672:34ef1a04 all the dispatchers started +2021-11-03 13:53:39.884 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:40.259 G Executed DbCommand ("38"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.345 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.350 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.353 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.357 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.362 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.365 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.368 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.371 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.377 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.381 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.384 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.387 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.412 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.417 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.420 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.423 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.427 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.430 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.433 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.438 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.443 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.446 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.449 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.456 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.463 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.467 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.470 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.473 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.476 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.479 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.483 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.486 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.489 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.492 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.495 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.499 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.504 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.507 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.510 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.513 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.518 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.522 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.525 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.528 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.532 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.535 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.538 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.545 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.552 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.557 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.560 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.565 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.569 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.573 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.577 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.581 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.585 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.589 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.592 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.599 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.602 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.606 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.610 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.614 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.618 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.621 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.624 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.629 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.633 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.638 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.641 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.645 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.648 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.916 G Initialized all ABP modules. +2021-11-03 13:53:40.999 G Now listening on: "http://localhost:44378" +2021-11-03 13:53:41.000 G Application started. Press Ctrl+C to shut down. +2021-11-03 13:53:41.001 G Hosting environment: "Development" +2021-11-03 13:53:41.002 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 13:53:42.056 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 13:53:42.894 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:42.912 G Executed DbCommand ("2"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 13:53:43.038 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:43.044 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 13:53:43.173 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:53:43.237 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 13:53:43.272 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 13:53:43.280 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 36.0674ms +2021-11-03 13:53:43.282 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:53:43.300 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1245.6411ms +2021-11-03 13:53:43.320 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 13:53:43.400 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 79.6740ms +2021-11-03 13:53:43.562 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 13:53:44.414 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 852.3772ms +2021-11-03 13:59:20.618 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryuwvyAKAuCckkaCGj 12097 +2021-11-03 13:59:20.627 G CORS policy execution failed. +2021-11-03 13:59:20.629 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:59:20.633 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:59:20.648 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:59:27.661 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.664 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.665 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.666 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.667 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.668 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.669 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.670 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.671 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.678 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.680 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.682 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.683 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.684 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.685 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.686 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.688 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.689 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.691 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.692 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.693 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.694 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.695 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.696 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.698 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.699 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.700 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.701 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.702 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.707 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.711 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.712 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.713 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.714 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.715 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.716 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.717 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.718 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.719 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.720 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.721 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.722 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.723 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.724 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.725 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.726 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.727 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.728 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.729 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.730 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.731 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.732 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.733 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.734 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.734 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.737 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.739 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.740 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.741 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.742 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.743 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.744 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.745 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.746 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.746 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.747 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.748 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.749 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.750 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.751 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.753 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.754 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.755 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.756 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.756 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.757 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.758 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.759 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.760 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.761 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.762 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.763 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.764 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.765 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.766 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.767 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.771 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.772 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.773 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.774 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.775 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.776 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.777 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.778 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.778 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.779 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.780 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.781 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.834 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:59:27.867 G Executed DbCommand ("14"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 13:59:28.003 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:59:28.008 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7358.8445ms +2021-11-03 13:59:28.010 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:59:28.091 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:59:28.276 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:59:28.290 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:59:28.292 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:59:28.321 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryuwvyAKAuCckkaCGj 12097 - 200 - text/plain;+charset=utf-8 7703.1800ms +2021-11-03 14:00:30.126 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryfmbfQqTLFlVgtwL7 12097 +2021-11-03 14:00:30.135 G CORS policy execution failed. +2021-11-03 14:00:30.136 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:00:30.138 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:30.139 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:00:37.981 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:37.990 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:00:38.020 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:00:38.022 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7881.5351ms +2021-11-03 14:00:38.023 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:38.024 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:38.029 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:00:38.032 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:38.035 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:38.037 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryfmbfQqTLFlVgtwL7 12097 - 200 - text/plain;+charset=utf-8 7910.8243ms +2021-11-03 14:00:52.077 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryAHrP8vKKgGC1IaQv 12097 +2021-11-03 14:00:52.079 G CORS policy execution failed. +2021-11-03 14:00:52.081 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:00:52.084 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:52.086 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:00:54.482 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:54.492 G Executed DbCommand ("2"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:00:54.523 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:00:54.525 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2437.7141ms +2021-11-03 14:00:54.526 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:54.529 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:54.537 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:00:54.539 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:54.541 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:54.545 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryAHrP8vKKgGC1IaQv 12097 - 200 - text/plain;+charset=utf-8 2467.1006ms +2021-11-03 14:03:35.864 G Starting web host. +2021-11-03 14:03:44.074 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 14:03:44.151 G Loaded ABP modules: +2021-11-03 14:03:44.152 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 14:03:44.153 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 14:03:44.154 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 14:03:44.154 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 14:03:44.155 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 14:03:44.156 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 14:03:44.157 G - Volo.Abp.Data.AbpDataModule +2021-11-03 14:03:44.157 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 14:03:44.158 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 14:03:44.158 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 14:03:44.159 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 14:03:44.160 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 14:03:44.160 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 14:03:44.161 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 14:03:44.163 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 14:03:44.164 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 14:03:44.164 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 14:03:44.165 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 14:03:44.165 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 14:03:44.166 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 14:03:44.166 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 14:03:44.167 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 14:03:44.167 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 14:03:44.168 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 14:03:44.168 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 14:03:44.168 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 14:03:44.169 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 14:03:44.170 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 14:03:44.170 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 14:03:44.171 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 14:03:44.173 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 14:03:44.174 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 14:03:44.175 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 14:03:44.176 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 14:03:44.180 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 14:03:44.184 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 14:03:44.185 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 14:03:44.187 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 14:03:44.188 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 14:03:44.189 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 14:03:44.190 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 14:03:44.190 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 14:03:44.191 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 14:03:44.192 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 14:03:44.194 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 14:03:44.196 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 14:03:44.197 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 14:03:44.198 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 14:03:44.199 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 14:03:44.200 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 14:03:44.201 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 14:03:44.202 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 14:03:44.204 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 14:03:44.205 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 14:03:44.207 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 14:03:44.208 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 14:03:44.210 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 14:03:44.212 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 14:03:44.213 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 14:03:44.214 G - Volo.Abp.UI.AbpUiModule +2021-11-03 14:03:44.217 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 14:03:44.219 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.220 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 14:03:44.221 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.222 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 14:03:44.226 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 14:03:44.233 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 14:03:44.234 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 14:03:44.235 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 14:03:44.236 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.237 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 14:03:44.240 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 14:03:44.242 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 14:03:44.244 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 14:03:44.245 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 14:03:44.246 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 14:03:44.247 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 14:03:44.248 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 14:03:44.248 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 14:03:44.249 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 14:03:44.250 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 14:03:44.350 G Start installing Hangfire SQL objects... +2021-11-03 14:03:44.505 G Hangfire SQL objects installed. +2021-11-03 14:03:44.521 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:03:44.522 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:03:44.524 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:03:44.626 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:03:44.627 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:03:44.628 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:03:44.838 G Server sk-20210819huao:62404:2abcb75e successfully announced in 195.3004 ms +2021-11-03 14:03:44.838 G Server sk-20210819huao:62404:2e6412da successfully announced in 236.0642 ms +2021-11-03 14:03:44.846 G Server sk-20210819huao:62404:2e6412da is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:03:44.862 G Server sk-20210819huao:62404:2abcb75e is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:03:45.283 G Server sk-20210819huao:62404:2abcb75e all the dispatchers started +2021-11-03 14:03:45.285 G Server sk-20210819huao:62404:2e6412da all the dispatchers started +2021-11-03 14:03:46.828 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:03:47.366 G Executed DbCommand ("36"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.478 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.482 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.485 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.490 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.495 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.499 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.502 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.507 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.512 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.515 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.519 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.524 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.528 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.531 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.534 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.538 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.542 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.546 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.549 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.557 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.561 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.565 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.571 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.575 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.579 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.583 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.587 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.590 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.594 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.598 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.605 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.608 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.613 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.620 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.624 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.629 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.637 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.643 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.660 G Executed DbCommand ("7"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.668 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.673 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.678 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.683 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.687 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.693 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.700 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.704 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.710 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.714 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.719 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.725 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.732 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.738 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.748 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.760 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.766 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.774 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.779 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.783 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.789 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.795 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.800 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.807 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.812 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.817 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.823 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.829 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.835 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.843 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.849 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.855 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.860 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.865 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:48.270 G Initialized all ABP modules. +2021-11-03 14:03:48.375 G Now listening on: "http://localhost:44378" +2021-11-03 14:03:48.376 G Application started. Press Ctrl+C to shut down. +2021-11-03 14:03:48.377 G Hosting environment: "Development" +2021-11-03 14:03:48.377 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 14:03:49.869 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 14:03:50.829 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:03:50.879 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 14:03:50.916 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 14:03:50.923 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 33.127ms +2021-11-03 14:03:50.925 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:03:50.942 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1076.7475ms +2021-11-03 14:03:50.958 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 14:03:51.018 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 60.3679ms +2021-11-03 14:03:51.195 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 14:03:51.995 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 800.4973ms +2021-11-03 14:04:38.843 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryk4Q5qf21GFDsx3mh 170551 +2021-11-03 14:04:38.855 G CORS policy execution failed. +2021-11-03 14:04:38.856 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:04:38.858 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:04:38.871 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:04:46.446 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.449 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.451 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.452 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.453 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.453 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.454 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.455 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.456 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.457 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.458 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.459 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.460 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.462 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.463 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.464 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.465 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.466 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.466 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.467 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.468 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.469 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.470 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.471 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.471 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.472 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.473 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.474 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.475 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.476 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.476 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.477 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.479 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.481 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.481 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.482 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.483 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.484 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.485 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.485 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.486 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.487 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.488 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.489 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.490 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.490 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.491 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.492 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.494 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.497 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.498 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.499 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.500 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.501 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.501 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.502 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.503 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.504 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.505 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.505 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.506 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.507 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.508 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.510 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.511 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.512 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.512 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.513 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.514 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.515 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.516 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.516 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.517 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.518 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.519 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.520 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.520 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.521 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.522 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.523 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.524 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.525 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.527 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.528 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.529 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.529 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.530 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.531 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.532 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.533 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.533 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.534 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.535 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.536 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.537 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.538 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.539 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.539 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.584 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:04:46.610 G Executed DbCommand ("7"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] IS NULL" +2021-11-03 14:04:46.812 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:04:46.816 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7943.8483ms +2021-11-03 14:04:46.821 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:04:46.922 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:04:47.128 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:04:47.137 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:04:47.139 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:04:47.164 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryk4Q5qf21GFDsx3mh 170551 - 200 - text/plain;+charset=utf-8 8321.0836ms +2021-11-03 14:05:54.511 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryEBAXwF6rqUTbEwvA 170551 +2021-11-03 14:05:54.520 G CORS policy execution failed. +2021-11-03 14:05:54.521 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:05:54.523 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:05:54.524 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:06:47.552 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:06:47.560 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] IS NULL" +2021-11-03 14:06:47.639 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:06:47.640 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 53115.5707ms +2021-11-03 14:06:47.641 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:06:47.643 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:06:47.647 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:06:47.649 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:06:47.652 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:06:47.656 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryEBAXwF6rqUTbEwvA 170551 - 200 - text/plain;+charset=utf-8 53144.9334ms +2021-11-03 14:07:03.915 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary4EhTyiIyhFVxxziQ 170551 +2021-11-03 14:07:03.917 G CORS policy execution failed. +2021-11-03 14:07:03.917 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:07:03.920 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:07:03.929 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:07:06.325 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:07:06.329 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:07:06.484 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:07:06.485 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2554.0859ms +2021-11-03 14:07:06.486 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:07:06.487 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:07:06.491 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:07:06.494 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:07:06.496 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:07:06.499 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary4EhTyiIyhFVxxziQ 170551 - 200 - text/plain;+charset=utf-8 2583.9929ms +2021-11-03 14:08:15.466 G Starting web host. +2021-11-03 14:08:23.508 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 14:08:23.620 G Loaded ABP modules: +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 14:08:23.622 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 14:08:23.622 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 14:08:23.623 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 14:08:23.623 G - Volo.Abp.Data.AbpDataModule +2021-11-03 14:08:23.624 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 14:08:23.625 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 14:08:23.626 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 14:08:23.627 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 14:08:23.627 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 14:08:23.628 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 14:08:23.628 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 14:08:23.629 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 14:08:23.629 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 14:08:23.630 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 14:08:23.630 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 14:08:23.631 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 14:08:23.631 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 14:08:23.631 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 14:08:23.632 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 14:08:23.632 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 14:08:23.632 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 14:08:23.633 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 14:08:23.633 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 14:08:23.634 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 14:08:23.634 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 14:08:23.635 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 14:08:23.635 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 14:08:23.636 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 14:08:23.636 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 14:08:23.637 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 14:08:23.637 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 14:08:23.637 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 14:08:23.638 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 14:08:23.638 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 14:08:23.639 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 14:08:23.640 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 14:08:23.640 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 14:08:23.641 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 14:08:23.642 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 14:08:23.643 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 14:08:23.644 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 14:08:23.644 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 14:08:23.645 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 14:08:23.645 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 14:08:23.646 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 14:08:23.647 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 14:08:23.647 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 14:08:23.649 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 14:08:23.653 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 14:08:23.654 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 14:08:23.655 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 14:08:23.655 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 14:08:23.656 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 14:08:23.658 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 14:08:23.659 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 14:08:23.659 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 14:08:23.660 G - Volo.Abp.UI.AbpUiModule +2021-11-03 14:08:23.661 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 14:08:23.661 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.662 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 14:08:23.662 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.663 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 14:08:23.664 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 14:08:23.664 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 14:08:23.665 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 14:08:23.666 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 14:08:23.667 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.668 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 14:08:23.668 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 14:08:23.669 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 14:08:23.670 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 14:08:23.670 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 14:08:23.671 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 14:08:23.672 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 14:08:23.673 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 14:08:23.676 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 14:08:23.678 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 14:08:23.679 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 14:08:23.792 G Start installing Hangfire SQL objects... +2021-11-03 14:08:24.027 G Hangfire SQL objects installed. +2021-11-03 14:08:24.040 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:08:24.041 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:08:24.043 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:08:24.113 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:08:24.114 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:08:24.115 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:08:24.355 G Server sk-20210819huao:10212:debbcf0a successfully announced in 234.6816 ms +2021-11-03 14:08:24.355 G Server sk-20210819huao:10212:0b4fee1e successfully announced in 265.2425 ms +2021-11-03 14:08:24.366 G Server sk-20210819huao:10212:0b4fee1e is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:08:24.366 G Server sk-20210819huao:10212:debbcf0a is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:08:24.403 G 2 servers were removed due to timeout +2021-11-03 14:08:24.596 G Server sk-20210819huao:10212:0b4fee1e all the dispatchers started +2021-11-03 14:08:24.620 G Server sk-20210819huao:10212:debbcf0a all the dispatchers started +2021-11-03 14:08:25.721 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:08:26.034 G Executed DbCommand ("28"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.118 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.122 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.126 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.130 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.133 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.136 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.143 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.146 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.149 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.152 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.156 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.159 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.162 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.165 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.169 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.172 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.175 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.178 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.181 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.184 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.189 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.193 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.196 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.200 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.204 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.208 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.211 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.214 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.222 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.227 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.232 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.235 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.238 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.241 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.244 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.247 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.254 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.258 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.261 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.268 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.271 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.275 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.279 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.282 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.285 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.291 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.295 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.298 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.301 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.304 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.307 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.311 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.315 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.318 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.321 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.324 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.330 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.337 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.341 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.345 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.349 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.352 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.356 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.361 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.365 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.368 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.373 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.381 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.384 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.388 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.392 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.649 G Initialized all ABP modules. +2021-11-03 14:08:26.734 G Now listening on: "http://localhost:44378" +2021-11-03 14:08:26.736 G Application started. Press Ctrl+C to shut down. +2021-11-03 14:08:26.736 G Hosting environment: "Development" +2021-11-03 14:08:26.737 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 14:08:27.924 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 14:08:28.848 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:08:28.943 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 14:08:28.978 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 14:08:28.985 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 35.5869ms +2021-11-03 14:08:28.987 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:08:29.005 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1089.4807ms +2021-11-03 14:08:29.023 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 14:08:29.086 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 63.5510ms +2021-11-03 14:08:29.253 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 14:08:30.097 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 843.7777ms +2021-11-03 14:12:34.884 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryDMcUKuYGpWXgf95g 170551 +2021-11-03 14:12:34.899 G CORS policy execution failed. +2021-11-03 14:12:34.899 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:12:34.903 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:12:34.916 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:12:58.978 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.980 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.983 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.984 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.985 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.986 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.987 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.987 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.988 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.989 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.990 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.991 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.992 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.992 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.993 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.994 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.995 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.996 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.997 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.000 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.001 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.002 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.003 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.005 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.005 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.006 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.008 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.010 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.011 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.012 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.013 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.014 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.014 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.015 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.016 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.017 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.018 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.018 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.019 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.020 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.021 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.022 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.023 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.023 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.024 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.025 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.026 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.027 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.029 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.030 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.031 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.031 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.032 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.033 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.034 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.035 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.035 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.036 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.037 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.038 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.039 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.040 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.040 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.041 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.042 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.044 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.046 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.047 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.048 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.049 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.050 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.050 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.051 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.052 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.053 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.054 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.055 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.056 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.056 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.057 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.058 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.060 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.061 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.062 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.063 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.064 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.065 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.065 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.066 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.067 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.068 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.068 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.069 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.070 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.071 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.072 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.072 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.073 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.120 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:12:59.143 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:12:59.334 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:12:59.337 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 24419.6167ms +2021-11-03 14:12:59.338 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:12:59.425 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:12:59.577 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:12:59.587 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:12:59.589 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:12:59.616 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryDMcUKuYGpWXgf95g 170551 - 200 - text/plain;+charset=utf-8 24731.3008ms +2021-11-03 14:13:13.685 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary80eGNCyyAYUj5RBc 170551 +2021-11-03 14:13:13.708 G CORS policy execution failed. +2021-11-03 14:13:13.709 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:13:13.713 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:13.714 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:13:15.936 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:15.944 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:13:16.547 G Executed DbCommand ("59"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.565 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.577 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.590 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.601 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.612 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.623 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.635 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.646 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.657 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.669 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.679 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.690 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.702 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.713 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.724 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.734 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.747 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.762 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.773 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.787 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.800 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.815 G Executed DbCommand ("5"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.833 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.847 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.861 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.873 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.885 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.898 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.908 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.919 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.949 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.976 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.992 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.006 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.019 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.027 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.035 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.041 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.049 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.056 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.066 G Executed DbCommand ("6"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.072 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.081 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.088 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.096 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.102 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.109 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.116 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.122 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.129 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.136 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.143 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.150 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.157 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.164 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.172 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.179 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.186 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.193 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.201 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.207 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.215 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.222 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.229 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.236 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.243 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.250 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.257 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.265 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.271 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.279 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.285 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.292 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.299 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.306 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.363 G Executed DbCommand ("52"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:19.979 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:13:19.982 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 6267.3004ms +2021-11-03 14:13:19.984 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:19.985 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:19.990 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:13:19.994 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:19.997 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:20.000 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary80eGNCyyAYUj5RBc 170551 - 200 - text/plain;+charset=utf-8 6314.3944ms +2021-11-03 14:13:24.439 G 2 servers were removed due to timeout +2021-11-03 14:13:32.233 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarycstRnhL2103jdRBu 12097 +2021-11-03 14:13:32.234 G CORS policy execution failed. +2021-11-03 14:13:32.235 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:13:32.247 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:32.249 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:13:34.192 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:34.195 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:13:34.450 G Executed DbCommand ("5"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:34.470 G Executed DbCommand ("15"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:34.645 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:13:34.648 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2396.5442ms +2021-11-03 14:13:34.650 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:34.653 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:34.663 G Executed DbCommand ("3"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:13:34.667 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:34.670 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:34.673 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarycstRnhL2103jdRBu 12097 - 200 - text/plain;+charset=utf-8 2439.6102ms diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs deleted file mode 100644 index 930b8087..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs +++ /dev/null @@ -1,8069 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210830073315_init")] - partial class init - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs deleted file mode 100644 index 7e2cf7ad..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs +++ /dev/null @@ -1,3505 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class init : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ParentItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChildItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemUom = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - OperateProcess = table.Column(type: "int", nullable: false), - ScrapPercent = table.Column(type: "decimal(18,2)", nullable: false), - BomType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - IssuePosition = table.Column(type: "nvarchar(max)", nullable: true), - BomLevel = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bom_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_not_kb_consign_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_not_kb_consign_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_seq_kb_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_seq_kb_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarconsign", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - KBCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarconsign", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarconsign_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarconsign_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - DateTime = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - OrderKBCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ReceiveAreaCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ReceiveAreaName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeliveryDateTime = table.Column(type: "datetime2", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DateTime = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseq", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - BarCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseq", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseq_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DT = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseq_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqfirst", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - BarCode = table.Column(type: "nvarchar(450)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - VIN = table.Column(type: "nvarchar(450)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqfirst", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqfirst_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DT = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqfirst_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqsecond", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - DateTime = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - PlanTypeRemark = table.Column(type: "nvarchar(max)", nullable: true), - Code = table.Column(type: "nvarchar(max)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - VIN = table.Column(type: "nvarchar(450)", nullable: true), - EngineCode = table.Column(type: "nvarchar(max)", nullable: true), - BarCode = table.Column(type: "nvarchar(450)", nullable: true), - CarName = table.Column(type: "nvarchar(max)", nullable: true), - CMSerie = table.Column(type: "nvarchar(max)", nullable: true), - CMSerieRemark = table.Column(type: "nvarchar(max)", nullable: true), - CarType = table.Column(type: "nvarchar(max)", nullable: true), - Color = table.Column(type: "nvarchar(max)", nullable: true), - TopSeq = table.Column(type: "nvarchar(max)", nullable: true), - InColor = table.Column(type: "nvarchar(max)", nullable: true), - CarModelShort = table.Column(type: "nvarchar(max)", nullable: true), - OrderStateNum = table.Column(type: "nvarchar(max)", nullable: true), - StateName = table.Column(type: "nvarchar(max)", nullable: true), - SpecialCarTypeRemark = table.Column(type: "nvarchar(max)", nullable: true), - PlanDate = table.Column(type: "datetime2", nullable: false), - PlanSeq = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqsecond", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqsecond_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DateTime = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqsecond_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_carmaterialconfig", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CarCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_carmaterialconfig", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_code", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Project = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Value = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Description = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_code", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_control", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_control", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customer", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Address = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Contact = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ContactPhone = table.Column(type: "nvarchar(max)", nullable: true), - ContactEmail = table.Column(type: "nvarchar(max)", nullable: true), - ContactFax = table.Column(type: "nvarchar(max)", nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), - CustomerType = table.Column(type: "int", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customer", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customer_bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ParentItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ChildItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - FailureTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customer_bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customerlocation", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerDesc = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Storagelocation = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customerlocation", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estdetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialDocument = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDocumentLine = table.Column(type: "nvarchar(450)", nullable: true), - BillNumber = table.Column(type: "nvarchar(max)", nullable: true), - PostingDate = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceQty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - PurchaseDocument = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - PurchaseLine = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Source = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - StorageLocation = table.Column(type: "nvarchar(max)", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estdetail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estimate_stock_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estimate_stock_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estinventory_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estinventory_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estsum", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Postingperiod = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - PurchaseDocument = table.Column(type: "nvarchar(max)", nullable: true), - PurchaseLine = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estsum", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estsum_verion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estsum_verion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_factory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Code = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Desc = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_factory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(450)", nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(450)", nullable: true), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_extend", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_extend", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_th", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(450)", nullable: true), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber2 = table.Column(type: "nvarchar(450)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_th", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqcon", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqcon", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqcon_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqcon_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - KBCode = table.Column(type: "nvarchar(max)", nullable: true), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspcon", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - KBCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - KBCodeExtend = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspcon", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspcon_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspcon_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - KBCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_importmap", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProjectName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - OldColumnName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - NewColumnName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - IsCheck = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_importmap", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_inventory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - AppraisalDesc = table.Column(type: "nvarchar(max)", nullable: true), - StorageLocationDesc = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - InputQty = table.Column(type: "decimal(18,2)", nullable: false), - OutputQty = table.Column(type: "decimal(18,2)", nullable: false), - OpeningInventoryQty = table.Column(type: "decimal(18,2)", nullable: false), - EndingInventoryQty = table.Column(type: "decimal(18,2)", nullable: false), - AppraisalCategory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - StorageLocation = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Unit = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_inventory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_inventory_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(450)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_inventory_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_Invoice", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TextCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InputDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Number = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Accounting = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AccountDate = table.Column(type: "datetime2", maxLength: 50, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_Invoice", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceSettledDiff", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceQty = table.Column(type: "decimal(18,2)", nullable: false), - SettleQty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceSettledDiff", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceSettledDiffVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreatorName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceSettledDiffVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jf_not_kb_consign_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jf_not_kb_consign_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarconsign", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - PABillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarconsign", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarconsign_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarconsign_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - BillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InStockQty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_material", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - Unit = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateTypeDesc = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_material", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_prebatch", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_prebatch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceList", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceList", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceListVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_relationship", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - MaterialProperty = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettleMaterialCode = table.Column(type: "nvarchar(max)", nullable: true), - ShipMaterailCode = table.Column(type: "nvarchar(max)", nullable: true), - AppraisalCategory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_relationship", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_adjustment_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_adjustment_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_adj", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerComponentCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Total = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_adj", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_adj_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_adj_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_dis", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - SupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Total = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_dis", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_dis_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_dis_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_ratio", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomSubItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportion = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportionPrice = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_ratio", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_ratio_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_ratio_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_send_unsettled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BeginVersion = table.Column(type: "nvarchar(max)", nullable: true), - EndVersion = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_send_unsettled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_send_unsettled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - OrderBillNum = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(450)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(max)", nullable: true), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_send_unsettled_report_detail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_settle", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettleYear = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP5A = table.Column(type: "datetime2", nullable: false), - CP7 = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettlementID = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementSupplier = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - state = table.Column(type: "int", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_fis_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_fis_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_settled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_settled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_unsettled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_unsettled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_supplier_item_setup", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ErpItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerSupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ErpSupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_supplier_item_setup", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_TaskJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ActionName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Error = table.Column(type: "nvarchar(max)", nullable: true), - Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Email = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - RealFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - RealDownFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - DownFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - ServiceName = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_TaskJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_unsettle", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettleYear = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP5A = table.Column(type: "datetime2", nullable: false), - CP7 = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettlementID = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementSupplier = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - state = table.Column(type: "int", nullable: false), - UnsettledReason = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_unsettle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_unsettle_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_unsettle_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_not_kb_consign_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - OrderKBCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - DeliveryDateTime = table.Column(type: "datetime2", nullable: false), - State = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_not_kb_consign_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_bt_not_kb_consign_report_detail_Set_bt_not_kb_consign_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_bt_not_kb_consign_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_seq_kb_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SeqQty = table.Column(type: "decimal(18,2)", nullable: false), - KBQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_seq_kb_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_bt_seq_kb_diff_report_detail_Set_bt_seq_kb_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_bt_seq_kb_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_estimate_stock_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - EstimationTypeDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - FgQty = table.Column(type: "decimal(18,2)", nullable: false), - UnSettledQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estimate_stock_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_estimate_stock_report_detail_Set_estimate_stock_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_estimate_stock_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_jf_not_kb_consign_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - BillNum = table.Column(type: "nvarchar(450)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - InStockQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jf_not_kb_consign_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_jf_not_kb_consign_report_detail_Set_jf_not_kb_consign_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_jf_not_kb_consign_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_adjustment_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - OfflineQty = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ErpSubItemCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - ErpSubItemQty = table.Column(type: "decimal(18,2)", nullable: false), - ErpSubItemActualQty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportion = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemSumQty = table.Column(type: "decimal(18,2)", nullable: false), - SumPriceNoTax = table.Column(type: "decimal(18,2)", nullable: false), - SumPriceWithTax = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_adjustment_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_sec_act_adjustment_report_detail_Set_sec_act_adjustment_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_sec_act_adjustment_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ErpSubItemCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - StaPaymentPartyQty = table.Column(type: "decimal(18,2)", nullable: false), - ActPaymentPartyQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - StdNoTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - ActNoTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - DiffAmount = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_sec_act_diff_report_detail_Set_sec_act_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_sec_act_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_fis_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - FisQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_fis_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_fis_diff_report_detail_Set_stock_fis_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_fis_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_settled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - R3SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_settled_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_settled_report_detail_Set_stock_settled_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_settled_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_unsettled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - FisUnSettledQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_unsettled_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_unsettled_report_detail_Set_stock_unsettled_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_unsettled_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "UpstreamDocument", - columns: table => new - { - UpstreamDocumentId = table.Column(type: "uniqueidentifier", nullable: false), - UpstreamDocumentNumber = table.Column(type: "nvarchar(max)", nullable: true), - UpstreamDocumentType = table.Column(type: "int", nullable: false), - Seq = table.Column(type: "int", nullable: false), - BTNotConsignReportId = table.Column(type: "uniqueidentifier", nullable: true), - BTSeqKBDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - EstimatedStockDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - JFNotConsignReportId = table.Column(type: "uniqueidentifier", nullable: true), - SecondaryActuralAdjustmentReportId = table.Column(type: "uniqueidentifier", nullable: true), - SecondaryActuralDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - SendUnsettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockFisDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockSettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockUnsettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_UpstreamDocument", x => x.UpstreamDocumentId); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_bt_not_kb_consign_report_BTNotConsignReportId", - column: x => x.BTNotConsignReportId, - principalTable: "Set_bt_not_kb_consign_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_bt_seq_kb_diff_report_BTSeqKBDiffReportId", - column: x => x.BTSeqKBDiffReportId, - principalTable: "Set_bt_seq_kb_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_estimate_stock_report_EstimatedStockDiffReportId", - column: x => x.EstimatedStockDiffReportId, - principalTable: "Set_estimate_stock_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_jf_not_kb_consign_report_JFNotConsignReportId", - column: x => x.JFNotConsignReportId, - principalTable: "Set_jf_not_kb_consign_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_sec_act_adjustment_report_SecondaryActuralAdjustmentReportId", - column: x => x.SecondaryActuralAdjustmentReportId, - principalTable: "Set_sec_act_adjustment_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_sec_act_diff_report_SecondaryActuralDiffReportId", - column: x => x.SecondaryActuralDiffReportId, - principalTable: "Set_sec_act_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_send_unsettled_report_SendUnsettledDiffReportId", - column: x => x.SendUnsettledDiffReportId, - principalTable: "Set_send_unsettled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_fis_diff_report_StockFisDiffReportId", - column: x => x.StockFisDiffReportId, - principalTable: "Set_stock_fis_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_settled_report_StockSettledDiffReportId", - column: x => x.StockSettledDiffReportId, - principalTable: "Set_stock_settled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_unsettled_report_StockUnsettledDiffReportId", - column: x => x.StockUnsettledDiffReportId, - principalTable: "Set_stock_unsettled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_bom_ParentItemCode_ChildItemCode_Version", - table: "Set_bom", - columns: new[] { "ParentItemCode", "ChildItemCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_BranchId_DocumentNumber", - table: "Set_bt_not_kb_consign_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_detail_BranchId_DocumentId_Version_CustomCode_MaterialCode_OrderKBCode", - table: "Set_bt_not_kb_consign_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_detail_DocumentId", - table: "Set_bt_not_kb_consign_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_BranchId_DocumentNumber", - table: "Set_bt_seq_kb_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_detail_BranchId_DocumentId_Version_DT_CustomCode_MaterialCode", - table: "Set_bt_seq_kb_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_detail_DocumentId", - table: "Set_bt_seq_kb_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarconsign_CustomerCode_MaterialCode_KBCode_Version", - table: "Set_btcarconsign", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarkb_CustomerCode_MaterialCode_OrderKBCode_Version", - table: "Set_btcarkb", - columns: new[] { "CustomerCode", "MaterialCode", "OrderKBCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseq_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseq", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseqfirst_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseqfirst", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseqsecond_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseqsecond", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_carmaterialconfig_CarCode_MaterialCode", - table: "Set_carmaterialconfig", - columns: new[] { "CarCode", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_code_Project_Value", - table: "Set_code", - columns: new[] { "Project", "Value" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_control_Year_Period", - table: "Set_control", - columns: new[] { "Year", "Period" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customer_BranchId_Code", - table: "Set_customer", - columns: new[] { "BranchId", "Code" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customer_bom_BranchId_CustomerCode_ParentItemCode_ChildItemCode", - table: "Set_customer_bom", - columns: new[] { "BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customerlocation_Storagelocation_CustomerCode", - table: "Set_customerlocation", - columns: new[] { "Storagelocation", "CustomerCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estdetail_MaterialDocument_MaterialDocumentLine_MaterialCode_Version", - table: "Set_estdetail", - columns: new[] { "MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version" }, - unique: true, - filter: "[MaterialDocumentLine] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_BranchId_DocumentNumber", - table: "Set_estimate_stock_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_estimate_stock_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_detail_DocumentId", - table: "Set_estimate_stock_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_factory_Code", - table: "Set_factory", - column: "Code", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_extend_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis_extend", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_th_ChassisNumber2_Version_Model_MaterialCode", - table: "Set_fis_th", - columns: new[] { "ChassisNumber2", "Version", "Model", "MaterialCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqcon_CustomerCode_MaterialCode_VIN_Version", - table: "Set_hqcon", - columns: new[] { "CustomerCode", "MaterialCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqkb_CustomerCode_MaterialCode_VIN_Version", - table: "Set_hqkb", - columns: new[] { "CustomerCode", "MaterialCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqspcon_CustomerCode_MaterialCode_KBCode_KBCodeExtend_Version", - table: "Set_hqspcon", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqspkb_CustomerCode_MaterialCode_KBCode_Version", - table: "Set_hqspkb", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "Version" }, - unique: true, - filter: "[MaterialCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_inventory_Version_MaterialCode_StorageLocation", - table: "Set_inventory", - columns: new[] { "Version", "MaterialCode", "StorageLocation" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_inventory_version_Version_Factory", - table: "Set_inventory_version", - columns: new[] { "Version", "Factory" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jf_not_kb_consign_report_BranchId_DocumentNumber", - table: "Set_jf_not_kb_consign_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jf_not_kb_consign_report_detail_DocumentId_Version_CustomCode_MaterialCode_BillNum", - table: "Set_jf_not_kb_consign_report_detail", - columns: new[] { "DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jfcarconsign_CustomerCode_MaterialCode_PABillNum_Version", - table: "Set_jfcarconsign", - columns: new[] { "CustomerCode", "MaterialCode", "PABillNum", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jfcarkb_CustomerCode_MaterialCode_BillNum_Version", - table: "Set_jfcarkb", - columns: new[] { "CustomerCode", "MaterialCode", "BillNum", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_material_MaterialCode", - table: "Set_material", - column: "MaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_prebatch_KENNCode_State", - table: "Set_prebatch", - columns: new[] { "KENNCode", "State" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode", - table: "Set_relationship", - column: "ErpMaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_BranchId_DocumentNumber", - table: "Set_sec_act_adjustment_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_detail_BranchId_DocumentId_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_act_adjustment_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_detail_DocumentId", - table: "Set_sec_act_adjustment_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_BranchId_DocumentNumber", - table: "Set_sec_act_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_detail_BranchId_DocumentId_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_act_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_detail_DocumentId", - table: "Set_sec_act_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_adj_Version_CustomerComponentCode_CustomerMaterialCode_SupplierCode", - table: "Set_sec_adj", - columns: new[] { "Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_adj_version_Version", - table: "Set_sec_adj_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_dis_SupplierCode", - table: "Set_sec_dis", - column: "SupplierCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_dis_version_Version", - table: "Set_sec_dis_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_ratio_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_ratio", - columns: new[] { "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_ratio_version_Version", - table: "Set_sec_ratio_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_send_unsettled_report_BranchId_DocumentNumber", - table: "Set_send_unsettled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_send_unsettled_report_detail_BranchId_DocumentId_Version_ChassisNumber_ItemCode", - table: "Set_send_unsettled_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_state", - table: "Set_settle", - column: "state"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_Version_ChassisNumber_MaterialCode", - table: "Set_settle", - columns: new[] { "Version", "ChassisNumber", "MaterialCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_BranchId_DocumentNumber", - table: "Set_stock_fis_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_fis_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_detail_DocumentId", - table: "Set_stock_fis_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_BranchId_DocumentNumber", - table: "Set_stock_settled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_settled_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_detail_DocumentId", - table: "Set_stock_settled_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_BranchId_DocumentNumber", - table: "Set_stock_unsettled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_unsettled_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_detail_DocumentId", - table: "Set_stock_unsettled_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_supplier_item_setup_ErpSupplierCode_ErpItemCode_CustomerSupplierCode_CustomerCode", - table: "Set_supplier_item_setup", - columns: new[] { "ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_state", - table: "Set_unsettle", - column: "state"); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_Version_ChassisNumber_MaterialCode", - table: "Set_unsettle", - columns: new[] { "Version", "ChassisNumber", "MaterialCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_version_Version", - table: "Set_unsettle_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_BTNotConsignReportId", - table: "UpstreamDocument", - column: "BTNotConsignReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_BTSeqKBDiffReportId", - table: "UpstreamDocument", - column: "BTSeqKBDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_EstimatedStockDiffReportId", - table: "UpstreamDocument", - column: "EstimatedStockDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_JFNotConsignReportId", - table: "UpstreamDocument", - column: "JFNotConsignReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SecondaryActuralAdjustmentReportId", - table: "UpstreamDocument", - column: "SecondaryActuralAdjustmentReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SecondaryActuralDiffReportId", - table: "UpstreamDocument", - column: "SecondaryActuralDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SendUnsettledDiffReportId", - table: "UpstreamDocument", - column: "SendUnsettledDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockFisDiffReportId", - table: "UpstreamDocument", - column: "StockFisDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockSettledDiffReportId", - table: "UpstreamDocument", - column: "StockSettledDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockUnsettledDiffReportId", - table: "UpstreamDocument", - column: "StockUnsettledDiffReportId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_bom"); - - migrationBuilder.DropTable( - name: "Set_bom_version"); - - migrationBuilder.DropTable( - name: "Set_bt_not_kb_consign_report_detail"); - - migrationBuilder.DropTable( - name: "Set_bt_seq_kb_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_btcarconsign"); - - migrationBuilder.DropTable( - name: "Set_btcarconsign_version"); - - migrationBuilder.DropTable( - name: "Set_btcarkb"); - - migrationBuilder.DropTable( - name: "Set_btcarkb_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseq"); - - migrationBuilder.DropTable( - name: "Set_btcarseq_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseqfirst"); - - migrationBuilder.DropTable( - name: "Set_btcarseqfirst_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseqsecond"); - - migrationBuilder.DropTable( - name: "Set_btcarseqsecond_version"); - - migrationBuilder.DropTable( - name: "Set_carmaterialconfig"); - - migrationBuilder.DropTable( - name: "Set_code"); - - migrationBuilder.DropTable( - name: "Set_control"); - - migrationBuilder.DropTable( - name: "Set_customer"); - - migrationBuilder.DropTable( - name: "Set_customer_bom"); - - migrationBuilder.DropTable( - name: "Set_customerlocation"); - - migrationBuilder.DropTable( - name: "Set_estdetail"); - - migrationBuilder.DropTable( - name: "Set_estimate_stock_report_detail"); - - migrationBuilder.DropTable( - name: "Set_estinventory_version"); - - migrationBuilder.DropTable( - name: "Set_estsum"); - - migrationBuilder.DropTable( - name: "Set_estsum_verion"); - - migrationBuilder.DropTable( - name: "Set_factory"); - - migrationBuilder.DropTable( - name: "Set_fis"); - - migrationBuilder.DropTable( - name: "Set_fis_extend"); - - migrationBuilder.DropTable( - name: "Set_fis_th"); - - migrationBuilder.DropTable( - name: "Set_fis_version"); - - migrationBuilder.DropTable( - name: "Set_hqcon"); - - migrationBuilder.DropTable( - name: "Set_hqcon_version"); - - migrationBuilder.DropTable( - name: "Set_hqkb"); - - migrationBuilder.DropTable( - name: "Set_hqkb_version"); - - migrationBuilder.DropTable( - name: "Set_hqspcon"); - - migrationBuilder.DropTable( - name: "Set_hqspcon_version"); - - migrationBuilder.DropTable( - name: "Set_hqspkb"); - - migrationBuilder.DropTable( - name: "Set_hqspkb_version"); - - migrationBuilder.DropTable( - name: "Set_importmap"); - - migrationBuilder.DropTable( - name: "Set_inventory"); - - migrationBuilder.DropTable( - name: "Set_inventory_version"); - - migrationBuilder.DropTable( - name: "Set_Invoice"); - - migrationBuilder.DropTable( - name: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropTable( - name: "Set_InvoiceSettledDiffVersion"); - - migrationBuilder.DropTable( - name: "Set_InvoiceVersion"); - - migrationBuilder.DropTable( - name: "Set_jf_not_kb_consign_report_detail"); - - migrationBuilder.DropTable( - name: "Set_jfcarconsign"); - - migrationBuilder.DropTable( - name: "Set_jfcarconsign_version"); - - migrationBuilder.DropTable( - name: "Set_jfcarkb"); - - migrationBuilder.DropTable( - name: "Set_jfcarkb_version"); - - migrationBuilder.DropTable( - name: "Set_material"); - - migrationBuilder.DropTable( - name: "Set_prebatch"); - - migrationBuilder.DropTable( - name: "Set_PriceList"); - - migrationBuilder.DropTable( - name: "Set_PriceListVersion"); - - migrationBuilder.DropTable( - name: "Set_relationship"); - - migrationBuilder.DropTable( - name: "Set_sec_act_adjustment_report_detail"); - - migrationBuilder.DropTable( - name: "Set_sec_act_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_sec_adj"); - - migrationBuilder.DropTable( - name: "Set_sec_adj_version"); - - migrationBuilder.DropTable( - name: "Set_sec_dis"); - - migrationBuilder.DropTable( - name: "Set_sec_dis_version"); - - migrationBuilder.DropTable( - name: "Set_sec_ratio"); - - migrationBuilder.DropTable( - name: "Set_sec_ratio_version"); - - migrationBuilder.DropTable( - name: "Set_send_unsettled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_settle"); - - migrationBuilder.DropTable( - name: "Set_stock_fis_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_stock_settled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_stock_unsettled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_supplier_item_setup"); - - migrationBuilder.DropTable( - name: "Set_TaskJob"); - - migrationBuilder.DropTable( - name: "Set_unsettle"); - - migrationBuilder.DropTable( - name: "Set_unsettle_version"); - - migrationBuilder.DropTable( - name: "UpstreamDocument"); - - migrationBuilder.DropTable( - name: "Set_bt_not_kb_consign_report"); - - migrationBuilder.DropTable( - name: "Set_bt_seq_kb_diff_report"); - - migrationBuilder.DropTable( - name: "Set_estimate_stock_report"); - - migrationBuilder.DropTable( - name: "Set_jf_not_kb_consign_report"); - - migrationBuilder.DropTable( - name: "Set_sec_act_adjustment_report"); - - migrationBuilder.DropTable( - name: "Set_sec_act_diff_report"); - - migrationBuilder.DropTable( - name: "Set_send_unsettled_report"); - - migrationBuilder.DropTable( - name: "Set_stock_fis_diff_report"); - - migrationBuilder.DropTable( - name: "Set_stock_settled_report"); - - migrationBuilder.DropTable( - name: "Set_stock_unsettled_report"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs deleted file mode 100644 index cc4ad7e4..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs +++ /dev/null @@ -1,8246 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210830073634_202108300001")] - partial class _202108300001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs deleted file mode 100644 index 8521bc26..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202108300001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_MaterialRelationshipDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialProperty = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShipMaterailCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AppraisalCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_MaterialRelationshipDetail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_MaterialRelationshipVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_MaterialRelationshipVersion", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipDetail"); - - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipVersion"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs deleted file mode 100644 index e7133470..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs +++ /dev/null @@ -1,8434 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210901012406_201209010001")] - partial class _201209010001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs deleted file mode 100644 index dfd69f1e..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _201209010001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_settle_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settle_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_settlement_part", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettlementPartCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementPartDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settlement_part", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_version_Version", - table: "Set_settle_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settlement_part_Period_CustomerCode_Version_SettlementPartCode", - table: "Set_settlement_part", - columns: new[] { "Period", "CustomerCode", "Version", "SettlementPartCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_settle_version"); - - migrationBuilder.DropTable( - name: "Set_settlement_part"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs deleted file mode 100644 index 5397156b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs +++ /dev/null @@ -1,8434 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210901030011_202109010002")] - partial class _202109010002 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs deleted file mode 100644 index b33c9c03..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109010002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Set_InvoiceVersion", - table: "Set_InvoiceVersion"); - - migrationBuilder.RenameTable( - name: "Set_InvoiceVersion", - newName: "Set_settlement_part_version"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Set_settlement_part_version", - table: "Set_settlement_part_version", - column: "Id"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Set_settlement_part_version", - table: "Set_settlement_part_version"); - - migrationBuilder.RenameTable( - name: "Set_settlement_part_version", - newName: "Set_InvoiceVersion"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Set_InvoiceVersion", - table: "Set_InvoiceVersion", - column: "Id"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs deleted file mode 100644 index 7ac56302..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs +++ /dev/null @@ -1,8514 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210902032556_202109020001")] - partial class _202109020001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs deleted file mode 100644 index 78f13b22..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109020001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_InvoiceVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceVersion", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_InvoiceVersion"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs deleted file mode 100644 index 98716c8a..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs +++ /dev/null @@ -1,8626 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210908064420_20210908")] - partial class _20210908 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs deleted file mode 100644 index 191e2ebf..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20210908 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_item_invoice_price", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - UM = table.Column(type: "nvarchar(max)", nullable: true), - Sales = table.Column(type: "nvarchar(max)", nullable: true), - SubAcct = table.Column(type: "nvarchar(max)", nullable: true), - CC = table.Column(type: "nvarchar(max)", nullable: true), - Backorder = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - ExtendedPrice = table.Column(type: "decimal(18,2)", nullable: false), - ExtendedMargin = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_item_invoice_price", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_item_invoice_price_Period_Version_MaterialCode", - table: "Set_item_invoice_price", - columns: new[] { "Period", "Version", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_item_invoice_price"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs deleted file mode 100644 index f9fca07b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs +++ /dev/null @@ -1,8706 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210908064843_2021090801")] - partial class _2021090801 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs deleted file mode 100644 index ff6e3f0a..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021090801 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_item_invoice_price_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_item_invoice_price_version", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_item_invoice_price_version"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs deleted file mode 100644 index 15a26992..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs +++ /dev/null @@ -1,8712 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210909023755_data09-02")] - partial class data0902 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs deleted file mode 100644 index 60307b24..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class data0902 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettleState", - table: "Set_fis", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ErpMaterialCode", - table: "Set_fis"); - - migrationBuilder.DropColumn( - name: "SettleState", - table: "Set_fis"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs deleted file mode 100644 index 45824a6d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs +++ /dev/null @@ -1,8722 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210911114440_202109110001")] - partial class _202109110001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs deleted file mode 100644 index be6d6ed9..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs +++ /dev/null @@ -1,75 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109110001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis"); - - migrationBuilder.AddColumn( - name: "DiffQty", - table: "Set_InvoiceSettledDiff", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "Version", - table: "Set_InvoiceSettledDiff", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpMaterialCode", - table: "Set_fis_extend", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettleState", - table: "Set_fis_extend", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis"); - - migrationBuilder.DropColumn( - name: "DiffQty", - table: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropColumn( - name: "Version", - table: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropColumn( - name: "ErpMaterialCode", - table: "Set_fis_extend"); - - migrationBuilder.DropColumn( - name: "SettleState", - table: "Set_fis_extend"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs deleted file mode 100644 index bfe152ea..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs +++ /dev/null @@ -1,8733 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210923073158_202109230001")] - partial class _202109230001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("YearKennCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs deleted file mode 100644 index cfbc1b23..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs +++ /dev/null @@ -1,93 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109230001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Model", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "KENNCode", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChassisNumber2", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Model", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "KENNCode", - table: "Set_fis", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChassisNumber2", - table: "Set_fis", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs deleted file mode 100644 index 8e7f5a73..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs +++ /dev/null @@ -1,8735 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210923075035_202109230003")] - partial class _202109230003 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs deleted file mode 100644 index 14673719..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109230003 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "YearKennCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - - migrationBuilder.AlterColumn( - name: "CarCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "YearKennCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CarCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs deleted file mode 100644 index c3059b79..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs +++ /dev/null @@ -1,8739 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210928072540_data20190928")] - partial class data20190928 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs deleted file mode 100644 index df16d204..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class data20190928 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Year", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Year", - table: "Set_prebatch"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs deleted file mode 100644 index 701ec9c0..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs +++ /dev/null @@ -1,8860 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210930051830_2021093001")] - partial class _2021093001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs deleted file mode 100644 index 060b97e4..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021093001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SettlementPakAndSpareParts", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ApplicableFunction = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettlementPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - SettlementPartDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpSparePartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpSparePartName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QADCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductLine = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PerCarNum = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - Price = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityPrice = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementPakAndSpareParts", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs deleted file mode 100644 index 5c734024..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs +++ /dev/null @@ -1,8970 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211008014847_2021100801")] - partial class _2021100801 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs deleted file mode 100644 index 93331577..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100801 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SettlementCrossReference", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Model = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettlementMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - BomMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementCrossReference", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs deleted file mode 100644 index f4677631..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs +++ /dev/null @@ -1,8973 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211008025050_2021100802")] - partial class _2021100802 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs deleted file mode 100644 index 7715430b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100802 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs deleted file mode 100644 index 14758eaf..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs +++ /dev/null @@ -1,9138 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009013417_2021100901")] - partial class _2021100901 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs deleted file mode 100644 index dee0b1e0..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100901 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CustomerCode", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Set_SettlementCrossReference_Version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementCrossReference_Version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_SettlementPakAndSpareParts_Version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementPakAndSpareParts_Version", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference_Version"); - - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts_Version"); - - migrationBuilder.DropColumn( - name: "CustomerCode", - table: "Set_SettlementPakAndSpareParts"); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs deleted file mode 100644 index fc499dd7..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs +++ /dev/null @@ -1,9142 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009013927_2021100902")] - partial class _2021100902 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs deleted file mode 100644 index cd471654..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100902 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "CustomerCode", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CustomerCode", - table: "Set_SettlementCrossReference"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs deleted file mode 100644 index 4d82af3d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs +++ /dev/null @@ -1,9145 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009083009_2021100900012")] - partial class _2021100900012 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs deleted file mode 100644 index 013405e8..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100900012 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Model", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(50)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Model", - table: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs deleted file mode 100644 index 0d9e84c8..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs +++ /dev/null @@ -1,9145 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211010014458_202110100001")] - partial class _202110100001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs deleted file mode 100644 index 2865a6b7..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110100001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs deleted file mode 100644 index e11fb44d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs +++ /dev/null @@ -1,9285 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211010014700_202110100002")] - partial class _202110100002 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs deleted file mode 100644 index 4174806f..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110100002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SecMatchBase", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Index = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Model = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleMentPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UsedNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - SettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), - DiffPrice = table.Column(type: "decimal(18,2)", nullable: false), - SettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - TheoreticalSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - RealSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - RealSettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), - IsDiffNumber = table.Column(type: "bit", nullable: false), - DiffAmount = table.Column(type: "decimal(18,2)", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SecMatchBase", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SecMatchBase"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs deleted file mode 100644 index d0b6db70..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs +++ /dev/null @@ -1,9288 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211011084504_202110110001")] - partial class _202110110001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs deleted file mode 100644 index 05db148d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110110001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "SupplierDesc", - table: "Set_SettlementCrossReference", - type: "nvarchar(128)", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UsedNumber", - table: "Set_SecMatchBase", - type: "decimal(18,2)", - maxLength: 50, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplyProportion", - table: "Set_SecMatchBase", - type: "decimal(18,2)", - maxLength: 50, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "IsSettle", - table: "Set_SecMatchBase", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsSettle", - table: "Set_SecMatchBase"); - - migrationBuilder.AlterColumn( - name: "SupplierDesc", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(128)", - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UsedNumber", - table: "Set_SecMatchBase", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SupplyProportion", - table: "Set_SecMatchBase", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldMaxLength: 50); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs deleted file mode 100644 index 4130f021..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs +++ /dev/null @@ -1,9292 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211012080054_20211012")] - partial class _20211012 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs deleted file mode 100644 index 7956dc17..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20211012 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Period", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AddColumn( - name: "Year", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Year", - table: "Set_SettlementCrossReference"); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Period", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs deleted file mode 100644 index b6337b49..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs +++ /dev/null @@ -1,9292 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211012084512_2021101201")] - partial class _2021101201 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs deleted file mode 100644 index 9a289031..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021101201 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Version", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs deleted file mode 100644 index 74a21c56..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs +++ /dev/null @@ -1,9290 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - partial class SettleAccountHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj index c09813b6..47366b8f 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj @@ -54,6 +54,7 @@ + diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json index 46ab25ce..005445ae 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json @@ -3,8 +3,8 @@ "CorsOrigins": "https://*.abc.com,http://localhost:9528,http://149.223.116.5:8088" }, "ConnectionStrings": { - "Default": "Server=192.168.0.213;Database=ABP;user id=sa;Password=Microsoft@2021;", - "SettleAccountService": "Server=192.168.0.213;Database=SettleAccountService;user id=sa;Password=Microsoft@2021;" + "Default": "Server=127.0.0.1;Database=ABP;user id=sa;Password=1", + "SettleAccountService": "Server=127.0.0.1;Database=SettleAccountService;user id=sa;Password=1;" }, "Logging": { "LogLevel": { @@ -13,6 +13,8 @@ "Microsoft.Hosting.Lifetime": "Information" } }, + + "Serilog": { "Using": [], "MinumumLevel": { diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs index 1314199b..696b5a80 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs @@ -44,6 +44,8 @@ namespace Win.Sfs.SettleAccount.Entities.Prices public int Type { get; set; } public Guid ParentId { set; get; } + [Display(Name = "客户")] + public string CustomerCode { get; set; } } @@ -57,68 +59,69 @@ namespace Win.Sfs.SettleAccount.Entities.Prices [Display(Name = "版本")] [ExporterHeader(DisplayName = "版本")] public string Version { set; get; } - /// - ///开始时间 - /// - [ExporterHeader(DisplayName = "开始时间")] + [ImporterHeader(Name = "有效从")] public DateTime BeginDate { get; set; } /// ///结算时间 /// - [ExporterHeader(DisplayName = "结算时间")] + [ImporterHeader(Name = "有效到")] public DateTime EndDate { get; set; } /// ///价格 /// - [ExporterHeader(DisplayName = "价格")] + [ImporterHeader(Name = "*金额")] public decimal Price { get; set; } /// ///物料编号 /// - [ExporterHeader(DisplayName = "物料编号")] + [ImporterHeader(Name = "*物料编码")] public string MaterialCode { get; set; } /// ///价格类型 /// - [ExporterHeader(DisplayName = "价格类型")] + [ImporterHeader(Name = "*分销渠道")] public int Type { get; set; } - + [ImporterHeader(Name = "*客户")] + public string CustomerCode { get; set; } + } [ImportProject(Name = SettleAccountModuleName.PriceList)] public class PriceListImportDto { - /// - /// 版本 - /// - [Display(Name = "版本")] - public string Version { set; get; } + ///// + ///// 版本 + ///// + //[Display(Name = "版本")] + //public string Version { set; get; } /// ///开始时间 /// - [ImporterHeader(Name = "开始时间")] + [ImporterHeader(Name = "有效从")] public DateTime BeginDate { get; set; } /// ///结算时间 /// - [ImporterHeader(Name = "结算时间")] + [ImporterHeader(Name = "有效到")] public DateTime EndDate { get; set; } /// ///价格 /// - [ImporterHeader(Name = "价格")] + [ImporterHeader(Name = "*金额")] public decimal Price { get; set; } /// ///物料编号 /// - [ImporterHeader(Name = "物料编号")] + [ImporterHeader(Name = "*物料编码")] public string MaterialCode { get; set; } /// ///价格类型 /// - [ImporterHeader(Name = "价格类型")] + [ImporterHeader(Name = "*分销渠道")] public int Type { get; set; } + [ImporterHeader(Name = "*客户")] + public string CustomerCode { get; set; } } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs index 09e9a2a3..b623c84d 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs @@ -23,9 +23,9 @@ namespace Win.Sfs.SettleAccount.Entities.Prices /// /// 供应商相关应用服务 /// - //[AllowAnonymous] + [AllowAnonymous] - [Authorize(SettleAccountPermissions.PriceLists.Default)] + //[Authorize(SettleAccountPermissions.PriceLists.Default)] [Route("api/SettleAccount/PriceList")] public class PriceListAppService : ApplicationService /*, IPriceListAppService*/ @@ -162,33 +162,42 @@ namespace Win.Sfs.SettleAccount.Entities.Prices virtual public async Task ImportAsync([FromForm] IFormFileCollection files,string version) { ExportImporter _exportImporter = new ExportImporter(); - var _mapList= _mapRepository.Where(p => p.ProjectName == SettleAccountModuleName.PriceList).ToList(); - var result = await _exportImporter.ExtendExcelImport(files, _excelImportService,_mapList); + + + + + var result = await _exportImporter.UploadExcelImport(files, _excelImportService); var entityList = ObjectMapper.Map, List>(result); - var matialCodeList=entityList.Select(p => p.MaterialCode).Distinct().ToList(); - List _ls = new List(); - foreach (var itm in matialCodeList) + var _ls = entityList.Where(p=>p.EndDate.ToString().Contains("9999")).GroupBy(p => new { p.MaterialCode, p.CustomerCode,p.Type }).Select(p=>p.FirstOrDefault()); + + + // List _ls = new List(); + //foreach (var itm in matialCodeList) + //{ + // var priceList= entityList.Where(p => p.MaterialCode == itm).Distinct().ToList(); + // var _list =priceList.OrderBy(p => p.BeginDate).ToList(); + // int i = 0;//查询下条记录 + // foreach (var price in _list) + // { + // i++; + // if (_list.Count == i) + // { + // price.EndDate = DateTime.MaxValue; + // break; + // } + // else + // { + // var _nextPrice = _list[i]; + // price.EndDate = _nextPrice.BeginDate.AddDays(-1); + // } + // _ls.Add(price); + // } + //} + foreach (var itm in _ls) { - var priceList= entityList.Where(p => p.MaterialCode == itm).Distinct().ToList(); - var _list =priceList.OrderBy(p => p.BeginDate).ToList(); - int i = 0;//查询下条记录 - foreach (var price in _list) - { - i++; - if (_list.Count == i) - { - price.EndDate = DateTime.MaxValue; - break; - } - else - { - var _nextPrice = _list[i]; - price.EndDate = _nextPrice.BeginDate.AddDays(-1); - } - _ls.Add(price); - } + itm.Update(GuidGenerator.Create(),version); } - await _mng.ImportAsync(_ls, version); + await _mng.ImportAsync(_ls.ToList(), version); return ApplicationConsts.SuccessStr; } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs index 3017fc6d..8c04b57a 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs @@ -31,7 +31,13 @@ namespace Win.Sfs.SettleAccount.Entities.Prices MaterialCode = materialCode; Type = type; } - + public void Update(Guid id,string version) + { + Id = id; + Version = version; + } + [Display(Name = "客户")] + public string CustomerCode { get; set; } /// ///版本 diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs index 2d5dcb19..5a34dc83 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs @@ -29,6 +29,11 @@ namespace Win.Sfs.SettleAccount.Entities.Prices return await _repository.GetAsync(id); } + public virtual List GetPriceList(string version) + { + var entities = _repository.Where(p => p.Version == version); + return entities.ToList(); + } public virtual async Task> GetListAsync( @@ -71,11 +76,31 @@ namespace Win.Sfs.SettleAccount.Entities.Prices List _errorList = new List(); //写校验在这里 - + var pricelist = GetPriceList(version); + + List _list = new List(); + foreach (var itm in pricelist) + { + var entity = entities.FirstOrDefault(p => p.Type == itm.Type && p.CustomerCode == itm.CustomerCode && p.MaterialCode == p.MaterialCode); + if (entity != null) + { + itm.Price = entity.Price; + entities.Remove(entity); + } + } + + + await _repository.GetDbContext().BulkInsertAsync(entities); - List _versionList = new List() { new PriceListVersion(GuidGenerator.Create(),DateTime.Now.Year.ToString(),DateTime.Now.Month.ToString(),version) }; - await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); + + var _first = _versionRepository.FirstOrDefault(p => p.Version == version); + if (_first == null) + { + + List _versionList = new List() { new PriceListVersion(GuidGenerator.Create(), DateTime.Now.Year.ToString(), DateTime.Now.Month.ToString(), version) }; + await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); + } diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index cdc139a1..20908ab8 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -306,19 +306,15 @@ namespace Win.Sfs.SettleAccount private static void ConfigurePriceList(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) { - - - - - builder.Entity(b => { b.ToTable($"{options.TablePrefix}_PriceList", options.Schema); - + b.ConfigureByConvention(); b.Property(x => x.MaterialCode).HasMaxLength(50); - + b.Property(x => x.CustomerCode).HasMaxLength(50); + }); } private static void ConfigurePriceListVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) diff --git a/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache b/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache index 690c812a..66e05f37 100644 Binary files a/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache and b/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache differ diff --git a/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.csproj.AssemblyReference.cache b/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.csproj.AssemblyReference.cache index 416e31f3..1aee1af3 100644 Binary files a/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.csproj.AssemblyReference.cache and b/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.csproj.AssemblyReference.cache differ diff --git a/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache b/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache index a8192bde..4aa03e98 100644 Binary files a/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache and b/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache differ