仓库复制
This commit is contained in:
commit
ed11047e82
20
.dockerignore
Normal file
20
.dockerignore
Normal file
@ -0,0 +1,20 @@
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/azds.yaml
|
||||
**/charts
|
||||
**/bin
|
||||
**/obj
|
||||
**/Dockerfile
|
||||
**/Dockerfile.develop
|
||||
**/docker-compose.yml
|
||||
**/docker-compose.*.yml
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
**/.toolstarget
|
||||
13
.gitee/ISSUE_TEMPLATE.zh-CN.md
Normal file
13
.gitee/ISSUE_TEMPLATE.zh-CN.md
Normal file
@ -0,0 +1,13 @@
|
||||
### 该问题是怎么引起的?
|
||||
|
||||
|
||||
|
||||
### 重现步骤
|
||||
|
||||
|
||||
|
||||
### 报错信息
|
||||
|
||||
|
||||
|
||||
|
||||
14
.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Normal file
14
.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Normal file
@ -0,0 +1,14 @@
|
||||
### 相关的Issue
|
||||
|
||||
|
||||
### 原因(目的、解决的问题等)
|
||||
|
||||
|
||||
### 描述(做了什么,变更了什么)
|
||||
|
||||
|
||||
### 测试用例(新增、改动、可能影响的功能)
|
||||
|
||||
|
||||
|
||||
|
||||
399
.gitignore
vendored
Normal file
399
.gitignore
vendored
Normal file
@ -0,0 +1,399 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.tlog
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||
*.vbp
|
||||
|
||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||
*.dsw
|
||||
*.dsp
|
||||
|
||||
# Visual Studio 6 technical files
|
||||
*.ncb
|
||||
*.aps
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# Visual Studio History (VSHistory) files
|
||||
.vshistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
|
||||
# VS Code files for those working on multiple tools
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Windows Installer files from build outputs
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
/APT.MicroApi/APT.PP.WebApi/logInfo
|
||||
62
APT.BaseData.Data/APT.BaseData.Data.csproj
Normal file
62
APT.BaseData.Data/APT.BaseData.Data.csproj
Normal file
@ -0,0 +1,62 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Mapping\FM\FMProcessDetailMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProcessMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProcessPlatformFileMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProcessPlatformMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProcessPlatformParamMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProductProcessDetailMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMProductProcessMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWareHouseMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkCalendarMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkStageCalendarMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkStageCalendarSchDetailMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkStageDetailsMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkstageExtStageMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkStageManuResourceMap.cs" />
|
||||
<Compile Remove="Mapping\FM\FMWorkStageMap.cs" />
|
||||
<Compile Remove="Mapping\FM\MMLineMap.cs" />
|
||||
<Compile Remove="Mapping\FM\MMLineStageMap.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Mapping\BD\" />
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="log4net" Version="2.0.13" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.12" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.12">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="5.0.12" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.12" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.12" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.2.88" />
|
||||
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.14" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\APT.BaseData.Domain\APT.BaseData.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="APT.Infrastructure.Core">
|
||||
<HintPath>..\dll\APT.Infrastructure.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="APT.Infrastructure.EF">
|
||||
<HintPath>..\dll\APT.Infrastructure.EF.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
20
APT.BaseData.Data/Mapping/FM/FMAutoPrintRecordDetailMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMAutoPrintRecordDetailMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMAutoPrintRecordDetailMap : APTEntityBaseMap<T_FM_AUTO_PRINT_RECORD_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_AUTO_PRINT_RECORD_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.PARAM_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.PARAM_VALUE).HasMaxLength(800);
|
||||
builder.HasOne(t => t.Nav_AutoPrintRecord).WithMany(t => t.Nav_Details)
|
||||
.HasForeignKey(t => t.AUTO_PRINT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMAutoPrintRecordMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMAutoPrintRecordMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMAutoPrintRecordMap : APTEntityBaseMap<T_FM_AUTO_PRINT_RECORD>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_AUTO_PRINT_RECORD> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.PRINTER_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.TEMPLET_FILE_NAME).HasMaxLength(400);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.Property(t => t.PRINTER_COMPUTER_NAME).HasMaxLength(400);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
46
APT.BaseData.Data/Mapping/FM/FMBaseConfigMap.cs
Normal file
46
APT.BaseData.Data/Mapping/FM/FMBaseConfigMap.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
|
||||
public class FMBaseConfigMap : APTEntityBaseMap<T_FM_BASE_CONFIG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_BASE_CONFIG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(30);
|
||||
builder.Property(t => t.TEL).HasMaxLength(30);
|
||||
//builder.Property(t => t.SN_RULE_EXPRESS).HasMaxLength(300);
|
||||
|
||||
//站点参数
|
||||
builder.Property(t => t.LOGO_ID).IsRequired(false);
|
||||
builder.HasOne(t => t.Nav_PictureLogo).WithMany().HasForeignKey(t => t.LOGO_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.BACK_PIC_ID).IsRequired(false);
|
||||
builder.HasOne(t => t.Nav_PictureBg).WithMany().HasForeignKey(t => t.BACK_PIC_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_HMI).WithMany().HasForeignKey(t => t.CURRENT_VOLTAGE_HMI_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_HomeHmi).WithMany().HasForeignKey(t => t.HOME_HMI_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_MessageTemplate).WithMany().HasForeignKey(t => t.MESSAGE_TEMPLATE_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.SYS_NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.SLOGAN).HasMaxLength(60);
|
||||
builder.Property(t => t.PIC_PATH).HasMaxLength(50);
|
||||
builder.Property(t => t.FILE_PATH).HasMaxLength(50);
|
||||
builder.Property(t => t.PIC_LEN);
|
||||
builder.Property(t => t.FILE_LEN);
|
||||
builder.Property(t => t.STATISTICAL_TYPE);
|
||||
builder.Property(t => t.PIC_TYPE).HasMaxLength(30);
|
||||
builder.Property(t => t.FILE_TYPE).HasMaxLength(100);
|
||||
builder.Property(t => t.EXCEL_TYPE).HasMaxLength(30);
|
||||
builder.Property(t => t.IS_USER_LOG);
|
||||
builder.Property(t => t.PUSH_API_URL).HasMaxLength(100);
|
||||
builder.Property(t => t.MAP_KEY).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_ConsPicture).WithMany().HasForeignKey(t => t.APP_CONS_PICTURE_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_TopPicture).WithMany().HasForeignKey(t => t.T0P_PICTURE_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_LowPicture).WithMany().HasForeignKey(t => t.LOWER_PICTURE_ID).IsRequired(false).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMCalendarClassMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMCalendarClassMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMCalendarClassMap : APTEntityBaseMap<T_FM_CALENDAR_CLASS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_CALENDAR_CLASS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
//关系
|
||||
builder.HasOne(t => t.Nav_Calendar).WithMany(t => t.Nav_CalendarClass).HasForeignKey(t => t.CALENDAR_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMCalendarMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMCalendarMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMCalendarMap : APTEntityBaseMap<T_FM_CALENDAR>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_CALENDAR> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
// Properties
|
||||
builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
//relation
|
||||
builder.HasMany(t => t.Nav_CalendarClass).WithOne().HasForeignKey(t => t.CALENDAR_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Holiday).WithMany().HasForeignKey(t => t.HOLIDAY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
14
APT.BaseData.Data/Mapping/FM/FMClassDetailMap.cs
Normal file
14
APT.BaseData.Data/Mapping/FM/FMClassDetailMap.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMClassDetailMap : APTEntityBaseMap<T_FM_CLASS_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_CLASS_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMClassMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMClassMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMClassMap : APTEntityBaseMap<T_FM_CLASS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_CLASS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
|
||||
//relation
|
||||
builder.HasMany(t => t.Nav_ClassDetail).WithOne().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMCostCenterMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMCostCenterMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMCostCenterMap: TreeEntityBaseMap<T_FM_COST_CENTER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_COST_CENTER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME).HasMaxLength(300);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(600);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(600);
|
||||
}
|
||||
}
|
||||
}
|
||||
32
APT.BaseData.Data/Mapping/FM/FMDepartmentMap.cs
Normal file
32
APT.BaseData.Data/Mapping/FM/FMDepartmentMap.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMDepartMentMap : TreeEntityBaseMap<T_FM_DEPARTMENT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
// Properties
|
||||
builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.Property(t => t.LINE_USER).HasMaxLength(500);
|
||||
builder.Property(t => t.DEPARTMENT_TYPE).HasDefaultValue(0);
|
||||
//builder.HasOne(t => t.Parent).WithMany().HasForeignKey(t => t.PARENT_ID);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
//builder.HasOne(t => t.Nav_Calendar).WithMany().HasForeignKey(t => t.CALENDAR_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
//负责人信息
|
||||
builder.Property(t => t.PERSON_ID).HasMaxLength(100).IsRequired(false);
|
||||
builder.HasOne(t => t.Nav_Person).WithMany().HasForeignKey(t => t.PERSON_ID).IsRequired(false)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGEUSER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.PARENT_CODE);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMEnumItemMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMEnumItemMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public partial class FMEnumItemMap : APTEntityBaseMap<T_FM_ENUM_ITEM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ENUM_ITEM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_Enum).WithMany(t => t.Nav_EnumItems).HasForeignKey(t => t.ENUM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMEnumMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMEnumMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public partial class FMEnumMap : APTEntityBaseMap<T_FM_ENUM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ENUM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_EnumType).WithMany().HasForeignKey(t => t.ENUM_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMEquipmentIntegrationTaskMap : APTEntityBaseMap<T_FM_EQUIPMENT_INTEGRATION_TASK>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EQUIPMENT_INTEGRATION_TASK> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.INTERFACE_ADDRESS).HasMaxLength(100);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.Property(t => t.READ_FILE_PATH).HasMaxLength(200);
|
||||
builder.Property(t => t.MOVE_FILE_PATH).HasMaxLength(200);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
26
APT.BaseData.Data/Mapping/FM/FMExtConnAsynchTempMap.cs
Normal file
26
APT.BaseData.Data/Mapping/FM/FMExtConnAsynchTempMap.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMExtConnAsynchTempMap : APTEntityBaseMap<T_FM_EXT_CONN_ASYNCH_TEMP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EXT_CONN_ASYNCH_TEMP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.PARAMS).HasMaxLength(2000);
|
||||
builder.Property(t => t.ECMSAGE).HasMaxLength(2000);
|
||||
builder.Property(t => t.FUNC_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.TABLE_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.FLAG_FEILD_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.FLAG_ECMSAGE_FIELD_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.ECMSAGE_FIELD_NAME).HasMaxLength(200);
|
||||
//builder.HasOne(t => t.Nav_ExtConnLog).WithMany().HasForeignKey(t => t.EXT_CONN_LOG_ID);
|
||||
// builder.HasOne(t => t.Nav_ExtConnTrans).WithMany().HasForeignKey(t => t.EXT_CONN_TRANS_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMExtConnConfigDetailMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMExtConnConfigDetailMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMExtConnConfigDetailMap : APTEntityBaseMap<T_FM_EXT_CONN_CONFIG_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EXT_CONN_CONFIG_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.KEY).HasMaxLength(300);
|
||||
builder.Property(t => t.VALUE).HasMaxLength(600);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_ExtConnConfig).WithMany(t => t.Nav_Details)
|
||||
.HasForeignKey(t => t.EXT_CONN_CONFIG_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMExtConnConfigMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMExtConnConfigMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMExtConnConfigMap : APTEntityBaseMap<T_FM_EXT_CONN_CONFIG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EXT_CONN_CONFIG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
16
APT.BaseData.Data/Mapping/FM/FMExtConnLogMap.cs
Normal file
16
APT.BaseData.Data/Mapping/FM/FMExtConnLogMap.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMExtConnLogMap: APTEntityBaseMap<T_FM_EXT_CONN_LOG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EXT_CONN_LOG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.PARMS).HasMaxLength(2000);
|
||||
builder.Property(t => t.ECMSAGE).HasMaxLength(2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
APT.BaseData.Data/Mapping/FM/FMExtConnTransMap.cs
Normal file
15
APT.BaseData.Data/Mapping/FM/FMExtConnTransMap.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMExtConnTransMap: APTEntityBaseMap<T_FM_EXT_CONN_TRANS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_EXT_CONN_TRANS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.TRANS_ID).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
APT.BaseData.Data/Mapping/FM/FMHolidayDetailMap.cs
Normal file
15
APT.BaseData.Data/Mapping/FM/FMHolidayDetailMap.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMHolidayDetailMap : APTEntityBaseMap<T_FM_HOLIDAY_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_HOLIDAY_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMHolidayMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMHolidayMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMHolidayMap : APTEntityBaseMap<T_FM_HOLIDAY>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_HOLIDAY> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
// Properties
|
||||
builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
|
||||
//relation
|
||||
builder.HasMany(t => t.Nav_HolidayDetails).WithOne().HasForeignKey(t => t.HOLIDAY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMImportConfigDetailMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMImportConfigDetailMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMImportConfigDetailMap : APTEntityBaseMap<T_FM_IMPORT_CONFIG_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_IMPORT_CONFIG_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.DESCRIPTION).HasMaxLength(200);
|
||||
|
||||
|
||||
builder.Property(t => t.SHEET_KEY_FIELD_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.PAGE_EDIT_CODE).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.Ignore(t => t.Data);
|
||||
builder.HasOne(t => t.Nav_ImportConfig).WithMany(t => t.Nav_Details).HasForeignKey(t => t.IMPORT_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
27
APT.BaseData.Data/Mapping/FM/FMImportConfigFieldMap.cs
Normal file
27
APT.BaseData.Data/Mapping/FM/FMImportConfigFieldMap.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMImportConfigFieldMap : APTEntityBaseMap<T_FM_IMPORT_CONFIG_FIELD>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_IMPORT_CONFIG_FIELD> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.LABEL).HasMaxLength(100);
|
||||
builder.Property(t => t.DEST_FIELD_NAME).HasMaxLength(400);
|
||||
builder.Property(t => t.SRC_FIELD_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.ID_FIELD_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.ID_TABLE_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.ID_TABLE_FIELD_NAME).HasMaxLength(400);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
|
||||
|
||||
builder.HasOne(t => t.Nav_ImportConfigDetail).WithMany(t => t.Nav_Fields)
|
||||
.HasForeignKey(t => t.IMPORT_CONFIG_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMImportConfigMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMImportConfigMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
|
||||
public class FMImportConfigMap : APTEntityBaseMap<T_FM_IMPORT_CONFIG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_IMPORT_CONFIG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(400);
|
||||
builder.Property(t => t.API_URL).HasMaxLength(200);
|
||||
builder.Property(t => t.TABLE_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.EDIT_FORM_CODE).HasMaxLength(100);
|
||||
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
APT.BaseData.Data/Mapping/FM/FMInfoMap.cs
Normal file
21
APT.BaseData.Data/Mapping/FM/FMInfoMap.cs
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMInfoMap : APTEntityBaseMap<T_FM_INFO>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_INFO> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.INFO).HasMaxLength(500);
|
||||
builder.Property(t => t.NAME).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.API).HasMaxLength(500);
|
||||
builder.Property(t => t.PARAMS).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMNotificationAcceptedMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMNotificationAcceptedMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMNotificationAcceptedMap : APTEntityBaseMap<T_FM_NOTIFICATION_ACCEPTED>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION_ACCEPTED> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Notification).
|
||||
WithMany(t => t.Nav_Accepteds).HasForeignKey(t => t.NOTIFICATION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMNotificationMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMNotificationMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMNotificationMap : APTEntityBaseMap<T_FM_NOTIFICATION>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.TITLE).HasMaxLength(200);
|
||||
builder.Property(t => t.ECMSAGE).HasMaxLength(1000);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(600);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMNotificationPermitMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMNotificationPermitMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMNotificationPermitMap : APTEntityBaseMap<T_FM_NOTIFICATION_PERMIT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION_PERMIT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Notification).
|
||||
WithMany(t => t.Nav_Permits).HasForeignKey(t => t.NOTIFICATION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMPanelBelongRoleMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMPanelBelongRoleMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPanelBelongRoleMap : APTEntityBaseMap<T_FM_PANEL_BELONG_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PANEL_BELONG_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_BelongRole).WithMany(t => t.Nav_Panels).HasForeignKey(t => t.BELONG_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Panel).WithMany().HasForeignKey(t => t.PANEL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMPanelInfoMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMPanelInfoMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPanelInfoMap : APTEntityBaseMap<T_FM_PANEL_INFO>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PANEL_INFO> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Info).WithMany()
|
||||
.HasForeignKey(t => t.INFO_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
APT.BaseData.Data/Mapping/FM/FMPanelMap.cs
Normal file
21
APT.BaseData.Data/Mapping/FM/FMPanelMap.cs
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPanelMap : APTEntityBaseMap<T_FM_PANEL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PANEL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(60);
|
||||
//relation
|
||||
builder.HasMany(t => t.Nav_PanelInfo).WithOne()
|
||||
.HasForeignKey(t => t.PANEL_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMPlanParamMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMPlanParamMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPlanParamMap : APTEntityBaseMap<T_FM_PLAN_PARAM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PLAN_PARAM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
APT.BaseData.Data/Mapping/FM/FMPrinterMap.cs
Normal file
21
APT.BaseData.Data/Mapping/FM/FMPrinterMap.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPrinterMap : APTEntityBaseMap<T_FM_PRINTER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PRINTER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(400);
|
||||
builder.Property(t => t.CODE).HasMaxLength(300);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
builder.Property(t => t.PRINTER_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.PRINTER_COMPUTER_NAME).HasMaxLength(400);
|
||||
builder.Property(t => t.TEMPLET_FILE_NAME).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMPrinterTaskMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMPrinterTaskMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMPrinterTaskMap : APTEntityBaseMap<T_FM_PRINTER_TASK>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PRINTER_TASK> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(300);
|
||||
builder.Property(t => t.SERIAL_NUM).HasMaxLength(400);
|
||||
builder.Property(t => t.WEIGHT).HasMaxLength(50);
|
||||
builder.Property(t => t.NUM).HasMaxLength(50);
|
||||
builder.Property(t => t.PRINTER_NAME).HasMaxLength(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
27
APT.BaseData.Data/Mapping/FM/FMProcessDetailMap.cs
Normal file
27
APT.BaseData.Data/Mapping/FM/FMProcessDetailMap.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using ATP.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace ATP.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProcessDetailMap : APTEntityBaseMap<T_FM_PROCESS_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PROCESS_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder); builder.Property(t => t.ORDER_FIELD).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_Unit).WithMany().HasForeignKey(t => t.UNIT_ID);
|
||||
builder.HasOne(t => t.Nav_Parent).WithMany().HasForeignKey(t => t.PARENT_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Procedure).WithMany().HasForeignKey(t => t.PROCEDURE_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Process).WithMany(t => t.Nav_Details).HasForeignKey(t => t.PROCESS_ID);//主从表绑定
|
||||
|
||||
builder.HasOne(t => t.Nav_PQCWorkStage).WithMany().HasForeignKey(t => t.PQC_WORKSTAGE_ID);
|
||||
|
||||
builder.Property(t => t.EXT_PROCEDURE_CODE).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMProcessMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMProcessMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using ATP.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace ATP.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProcessMap : APTEntityBaseMap<T_FM_PROCESS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PROCESS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_FQCWorkStage).WithMany().HasForeignKey(t => t.FQC_WORKSTAGE_ID);
|
||||
builder.HasOne(t => t.Nav_PQCWorkStage).WithMany().HasForeignKey(t => t.PQC_WORKSTAGE_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
16
APT.BaseData.Data/Mapping/FM/FMProcessPlatformFileMap.cs
Normal file
16
APT.BaseData.Data/Mapping/FM/FMProcessPlatformFileMap.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using ATP.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace ATP.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProcessPlatformFileMap : APTEntityBaseMap<T_FM_PROCESS_PLATFORM_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PROCESS_PLATFORM_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ProcessPlatform).WithMany(t => t.Nav_Files).HasForeignKey(t => t.PROCESS_PLATFORM_ID);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
39
APT.BaseData.Data/Mapping/FM/FMProcessPlatformMap.cs
Normal file
39
APT.BaseData.Data/Mapping/FM/FMProcessPlatformMap.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using ATP.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace ATP.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProcessPlatformMap : APTEntityBaseMap<T_FM_PROCESS_PLATFORM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PROCESS_PLATFORM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.VERSION).HasMaxLength(400);
|
||||
|
||||
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
builder.Property(t => t.IMPORTANT_REMARK).HasMaxLength(400);
|
||||
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_1).HasMaxLength(60);
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_2).HasMaxLength(60);
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_3).HasMaxLength(60);
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_4).HasMaxLength(60);
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_5).HasMaxLength(60);
|
||||
builder.Property(t => t.BARREL_TEMPEATURE_6).HasMaxLength(60);
|
||||
|
||||
|
||||
builder.HasOne(t => t.Nav_Mould).WithMany().HasForeignKey(t => t.MOULD_ID);
|
||||
//builder.HasOne(t => t.Nav_Workstage).WithMany().HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
builder.HasOne(t => t.Nav_Product).WithMany().HasForeignKey(t => t.PRODUCT_ID);
|
||||
builder.HasOne(t => t.Nav_Mateial).WithMany().HasForeignKey(t => t.MATEIAL_ID);
|
||||
builder.HasOne(t => t.Nav_EditUser).WithMany().HasForeignKey(t => t.EDIT_USER_ID);
|
||||
builder.HasOne(t => t.Nav_PermitUser).WithMany().HasForeignKey(t => t.PERMIT_USER_ID);
|
||||
builder.HasOne(t => t.Nav_ApproveUser).WithMany().HasForeignKey(t => t.APPROVE_USER_ID);
|
||||
builder.HasOne(t => t.Nav_Board).WithMany().HasForeignKey(t => t.BOARD_ID);
|
||||
builder.HasOne(t => t.Nav_ProcessPlatformParam).WithMany().HasForeignKey(t => t.PROCESS_PLATFORM_PARAM_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
171
APT.BaseData.Data/Mapping/FM/FMProcessPlatformParamMap.cs
Normal file
171
APT.BaseData.Data/Mapping/FM/FMProcessPlatformParamMap.cs
Normal file
@ -0,0 +1,171 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using ATP.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace ATP.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProcessPlatformParamMap : APTEntityBaseMap<T_FM_PROCESS_PLATFORM_PARAM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PROCESS_PLATFORM_PARAM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_1).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_2).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_3).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_4).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_5).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_6).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_7).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_8).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_9).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_10).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_11).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_12).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_13).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_14).HasMaxLength(60);
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_15).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.HOT_RUNNER_MOUTH_16).HasMaxLength(60);
|
||||
builder.Property(t => t.BEFORE_MOULD_PLAN).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.BEFORE_MOULD_REAL).HasMaxLength(60);
|
||||
builder.Property(t => t.AFTER_MOULD_PLAN).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.AFTER_MOULD_REAL).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_ONE_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_TWO_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_LOWER_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_UPPER_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_ONE_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_TWO_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_LOWER_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_UPPER_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_ONE_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_TWO_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.LOCK_MOULD_LOWER_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOCK_MOULD_UPPER_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_ONE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_TWO_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_STOP_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_BACK_ONE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_BACK_TWO_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_BACK_STOP_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_ONE_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_FONT_TWO_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_STOP_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_BACK_ONE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_BACK_TWO_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_BACK_STOP_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_ONE_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_FONT_TWO_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_FONT_STOP_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_BACK_ONE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_BACK_TWO_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.THIMBLE_BACK_STOP_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_SEMI_AUTO_COUNT).HasMaxLength(60);
|
||||
builder.Property(t => t.THIMBLE_MANIPULATOR).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_ONE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_TWO_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_THREE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_FOUR_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_ONE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_TWO_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MELT_GLUE_THREE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_FOUR_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MELT_GLUE_ONE_BACK_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_TWO_BACK_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MELT_GLUE_THREE_BACK_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_FOUR_BACK_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MELT_GLUE_ONE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_TWO_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MELT_GLUE_THREE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.MELT_GLUE_FOUR_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOOSE_BACK_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.LOOSE_BACK_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.LOOSE_BACK_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.PRESS_KEEP_ONE_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.PRESS_KEEP_TWO_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.PRESS_KEEP_THREE_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.PRESS_KEEP_ONE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.PRESS_KEEP_TWO_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.PRESS_KEEP_THREE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.PRESS_KEEP_ONE_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.PRESS_KEEP_TWO_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.PRESS_KEEP_THREE_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_ONE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_TWO_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_THREE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_FOUR_SPEED).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_FIVE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_ONE_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_TWO_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_THREE_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_FOUR_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_FIVE_PRESSURE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_ONE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_TWO_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.GLUE_INJECT_THREE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_FOUR_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_FIVE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.GLUE_INJECT_STOP_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.CHIP_FONT_TIME).HasMaxLength(60);
|
||||
builder.Property(t => t.CHIP_FONT_PRESS).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.CHIP_FONT_DISTANCE).HasMaxLength(60);
|
||||
builder.Property(t => t.CHIP_BACK_TIME).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.CHIP_BACK_PRESS).HasMaxLength(60);
|
||||
builder.Property(t => t.CHIP_BACK_DISTANCE).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.DEVICE_CHECK_INJECT_TIME).HasMaxLength(60);
|
||||
builder.Property(t => t.DEVICE_CHECK_PRESS_KEEP_LOCATION).HasMaxLength(60);
|
||||
|
||||
builder.Property(t => t.MAKE_MOULD_ONE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_TWO_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_THREE_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_FOUR_SPEED).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_ONE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_TWO_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_THREE_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_FOUR_PRESSURE).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_ONE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_TWO_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_THREE_LOCATION).HasMaxLength(60);
|
||||
builder.Property(t => t.MAKE_MOULD_FOUR_LOCATION).HasMaxLength(60);
|
||||
}
|
||||
}
|
||||
}
|
||||
29
APT.BaseData.Data/Mapping/FM/FMProductProcessDetailMap.cs
Normal file
29
APT.BaseData.Data/Mapping/FM/FMProductProcessDetailMap.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProductProcessDetailMap : APTEntityBaseMap<T_FM_PRODUCT_PROCESS_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PRODUCT_PROCESS_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder); builder.Property(t => t.ORDER_FIELD).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_Unit).WithMany().HasForeignKey(t => t.UNIT_ID);
|
||||
builder.HasOne(t => t.Nav_Parent).WithMany().HasForeignKey(t => t.PARENT_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Procedure).WithMany().HasForeignKey(t => t.PROCEDURE_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Product_Process).WithMany(t => t.Nav_Details).HasForeignKey(t => t.PRODUCT_PROCESS_ID);//主从表绑定
|
||||
|
||||
builder.HasOne(t => t.Nav_PQCWorkStage).WithMany().HasForeignKey(t => t.PQC_WORKSTAGE_ID);
|
||||
|
||||
builder.Property(t => t.EXT_PROCEDURE_CODE).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_ProcessDetail).
|
||||
WithMany().HasForeignKey(t => t.PROCESS_DETAIL_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMProductProcessMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMProductProcessMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMProductProcessMap : APTEntityBaseMap<T_FM_PRODUCT_PROCESS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_PRODUCT_PROCESS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.HasOne(t => t.Nav_FQCWorkStage).WithMany().HasForeignKey(t => t.FQC_WORKSTAGE_ID);
|
||||
builder.HasOne(t => t.Nav_PQCWorkStage).WithMany().HasForeignKey(t => t.PQC_WORKSTAGE_ID);
|
||||
builder.HasOne(t => t.Nav_Product).WithMany(t => t.Nav_ProductProcesses).HasForeignKey(t => t.PRODUCT_ID);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.MODIFIER_ID);
|
||||
builder.HasOne(t => t.Nav_Process).WithMany().HasForeignKey(t => t.PROCESS_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMRoleGroupBelongRoleMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMRoleGroupBelongRoleMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMRoleGroupBelongRoleMap : APTEntityBaseMap<T_FM_ROLE_GROUP_BELONG_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE_GROUP_BELONG_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_RoleGroup).WithMany(t => t.Nav_BelongRoles).HasForeignKey(t => t.ROLE_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_BelongRole).WithMany().HasForeignKey(t => t.BELONG_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMRoleGroupMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMRoleGroupMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMRoleGroupMap : APTEntityBaseMap<T_FM_ROLE_GROUP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE_GROUP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.CODE)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
25
APT.BaseData.Data/Mapping/FM/FMRoleMap.cs
Normal file
25
APT.BaseData.Data/Mapping/FM/FMRoleMap.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMRoleMap : APTEntityBaseMap<T_FM_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
|
||||
|
||||
|
||||
|
||||
builder.Ignore(t => t.CheckKeys);
|
||||
builder.Ignore(t => t.DepartmentCheckedKeys);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermBtnMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermBtnMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM.System
|
||||
{
|
||||
public class FMRoleMenuPermBtnMap : APTEntityBaseMap<T_FM_ROLE_MENU_PERM_BTN>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE_MENU_PERM_BTN> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_RoleMenuPermission).WithMany(t => t.Nav_PermissionBtns)
|
||||
.HasForeignKey(t => t.ROLE_MENU_PERMISSION_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Btn).WithMany().HasForeignKey(t => t.BTN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermColMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermColMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM.System
|
||||
{
|
||||
public class FMRoleMenuPermColMap : APTEntityBaseMap<T_FM_ROLE_MENU_PERM_COL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE_MENU_PERM_COL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_RoleMenuPermission).WithMany(t => t.Nav_PermissionColumns)
|
||||
.HasForeignKey(t => t.ROLE_MENU_PERMISSION_ID);
|
||||
builder.HasOne(t => t.Nav_Column).WithMany().HasForeignKey(t => t.COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMRoleMenuPermMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMRoleMenuPermMap : APTEntityBaseMap<T_FM_ROLE_MENU_PERM>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_ROLE_MENU_PERM> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PermissionForm).WithMany().HasForeignKey(t => t.PERMISSION_FORM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_Role).WithMany(t => t.Nav_MenuPermissions).
|
||||
HasForeignKey(t => t.ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMStageAttrMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMStageAttrMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMStageAttrMap : APTEntityBaseMap<T_FM_STAGE_ATTR>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_STAGE_ATTR> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.VALUE).HasMaxLength(100);
|
||||
builder.Property(t => t.DESC).HasMaxLength(300);
|
||||
|
||||
builder.HasOne(t => t.Nav_PlanParam).WithMany()
|
||||
.HasForeignKey(t => t.PLAN_PARAM_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMStageBelongRoleMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMStageBelongRoleMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMStageBelongRoleMap : APTEntityBaseMap<T_FM_STAGE_BELONG_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_STAGE_BELONG_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
//builder.HasOne(t => t.Nav_BelongRole).WithMany(t => t.Nav_Workstages).HasForeignKey(t => t.BELONG_ROLE_ID);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMStageDynamicMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMStageDynamicMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMStageDynamicMap : APTEntityBaseMap<T_FM_STAGE_DYNAMIC>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_STAGE_DYNAMIC> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.VAL).HasMaxLength(50);
|
||||
builder.Property(t => t.ACTUAL_VAL).HasMaxLength(50);
|
||||
|
||||
builder.HasOne(t => t.Nav_PlanParam).WithMany()
|
||||
.HasForeignKey(t => t.PLAN_PARAM_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
14
APT.BaseData.Data/Mapping/FM/FMStagePlanMap.cs
Normal file
14
APT.BaseData.Data/Mapping/FM/FMStagePlanMap.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMStagePlanMap : APTEntityBaseMap<T_FM_STAGE_PLAN>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_STAGE_PLAN> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
APT.BaseData.Data/Mapping/FM/FMSyncTaskMap.cs
Normal file
22
APT.BaseData.Data/Mapping/FM/FMSyncTaskMap.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
|
||||
public class FMSyncTaskMap : APTEntityBaseMap<T_FM_SYNC_TASK>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_SYNC_TASK> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(30);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.INTERFACE_ADDRESS).HasMaxLength(100);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(200);
|
||||
builder.Property(t => t.SYNC_PARAM).HasMaxLength(600);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/FMUnitMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/FMUnitMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUnitMap : APTEntityBaseMap<T_FM_UNIT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_UNIT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.CODE).HasMaxLength(300);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
APT.BaseData.Data/Mapping/FM/FMUserBelongRoleGroupMap.cs
Normal file
22
APT.BaseData.Data/Mapping/FM/FMUserBelongRoleGroupMap.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserBelongRoleGroupMap : APTEntityBaseMap<T_FM_USER_BELONG_ROLE_GROUP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_BELONG_ROLE_GROUP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_BelongRoleGroup).WithMany().HasForeignKey(t => t.BELONG_ROLE_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany(t => t.Nav_BelongRoleGroups).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMUserBelongRoleMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMUserBelongRoleMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserBelongRoleMap : APTEntityBaseMap<T_FM_USER_BELONG_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_BELONG_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_BelongRole).WithMany(t=> t.Nav_UserBelongRoles).HasForeignKey(t => t.BELONG_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany(t => t.Nav_BelongRoles).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMUserBelongUserGroupMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMUserBelongUserGroupMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM.System
|
||||
{
|
||||
public class FMUserBelongUserGroupMap : APTEntityBaseMap<T_FM_USER_BELONG_USER_GROUP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_BELONG_USER_GROUP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_BelongUserGroup).WithMany().HasForeignKey(t => t.BELONG_USER_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany(t => t.Nav_BelongUserGroups).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMUserCCEditColMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMUserCCEditColMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCEditColMap : APTEntityBaseMap<T_FM_USER_C_C_EDIT_COL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_EDIT_COL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.LABEL).HasMaxLength(300);
|
||||
builder.HasOne(t => t.Nav_EditColumn).WithMany().HasForeignKey(t => t.EDIT_COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCCEdit).WithMany(t => t.Nav_EditColumns).HasForeignKey(t => t.USER_C_C_EDIT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMUserCCEditHColMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMUserCCEditHColMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCEditHColMap : APTEntityBaseMap<T_FM_USER_C_C_EDIT_H_COL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_EDIT_H_COL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_EditColumn).WithMany().HasForeignKey(t => t.EDIT_COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCCEdit).WithMany(t => t.Nav_HiddenCols).HasForeignKey(t => t.USER_C_C_EDIT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMUserCCEditMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMUserCCEditMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCEditMap : APTEntityBaseMap<T_FM_USER_C_C_EDIT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_EDIT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_UserCustomConfig).WithMany(t => t.Nav_Edits)
|
||||
.HasForeignKey(t => t.USER_CUSTOM_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_PageEdit).WithMany().HasForeignKey(t => t.PAGE_EDIT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
APT.BaseData.Data/Mapping/FM/FMUserCCQueryFieldMap.cs
Normal file
44
APT.BaseData.Data/Mapping/FM/FMUserCCQueryFieldMap.cs
Normal file
@ -0,0 +1,44 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCQueryFieldMap : APTEntityBaseMap<T_FM_USER_C_C_QUERY_FIELD>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_QUERY_FIELD> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.QUERY_NAME)
|
||||
.HasMaxLength(100);
|
||||
|
||||
builder.Property(t => t.LABEL)
|
||||
.HasMaxLength(64);
|
||||
|
||||
builder.Property(t => t.OP_DEFAULT)
|
||||
.HasMaxLength(64);
|
||||
|
||||
builder.Property(t => t.DATA_VALUE)
|
||||
.HasMaxLength(100);
|
||||
|
||||
builder.Property(t => t.ENUM_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_UserCCQuery).WithMany(t => t.Nav_Fields).HasForeignKey(t => t.USER_C_C_QUERY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCCQueryGroup).WithMany().HasForeignKey(t => t.USER_C_C_QUERY_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
|
||||
}
|
||||
public FMUserCCQueryFieldMap()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMUserCCQueryGroupMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMUserCCQueryGroupMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCQueryGroupMap : TreeEntityBaseMap<T_FM_USER_C_C_QUERY_GROUP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_QUERY_GROUP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.TITLE).HasMaxLength(200);
|
||||
builder.Property(t => t.CODE).HasMaxLength(300);
|
||||
builder.HasOne(t => t.Nav_UserCCQuery).WithMany(t => t.Nav_Groups)
|
||||
.HasForeignKey(t => t.USER_C_C_QUERY_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMUserCCQueryMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMUserCCQueryMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCQueryMap : APTEntityBaseMap<T_FM_USER_C_C_QUERY>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_QUERY> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.TITLE).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_UserCustomConfig).WithMany(t => t.Nav_Querys)
|
||||
.HasForeignKey(t => t.USER_CUSTOM_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_PageForm).WithMany().HasForeignKey(t => t.PAGE_FORM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMUserCCTableColMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMUserCCTableColMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCCTableColMap : APTEntityBaseMap<T_FM_USER_C_C_TABLE_COL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_TABLE_COL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Column).WithMany().HasForeignKey(t => t.COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCCTable).WithMany(t => t.Nav_Columns).HasForeignKey(t => t.USER_C_C_TABLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.LABEL).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMUserCCTableMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMUserCCTableMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM.System
|
||||
{
|
||||
public class FMUserCCTableMap : APTEntityBaseMap<T_FM_USER_C_C_TABLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_C_C_TABLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PageTable).WithMany().HasForeignKey(t => t.PAGE_TABLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCustomConfig).WithMany(t => t.Nav_Tabls).HasForeignKey(t => t.USER_CUSTOM_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigHColMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigHColMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCustomConfigHColMap : APTEntityBaseMap<T_FM_USER_CUSTOM_CONFIG_H_COL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_CUSTOM_CONFIG_H_COL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Column).WithMany().HasForeignKey(t => t.COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_HiddenTable).WithMany(t => t.Nav_HiddenColumns).HasForeignKey(t => t.USER_CUSTOM_CONFIG_H_TAB_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigHTabMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigHTabMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCustomConfigHTabMap : APTEntityBaseMap<T_FM_USER_CUSTOM_CONFIG_H_TAB>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_CUSTOM_CONFIG_H_TAB> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_PageTable).WithMany().HasForeignKey(t => t.PAGE_TABLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserCustomConfig).WithMany(t => t.Nav_HiddenTables).HasForeignKey(t => t.USER_CUSTOM_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigMap.cs
Normal file
18
APT.BaseData.Data/Mapping/FM/FMUserCustomConfigMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserCustomConfigMap : APTEntityBaseMap<T_FM_USER_CUSTOM_CONFIG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_CUSTOM_CONFIG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
//builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserGroupBelongRoleGroupMap : APTEntityBaseMap<T_FM_USER_GROUP_BELONG_R_G>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_GROUP_BELONG_R_G> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_BelongRoleGroup).WithMany().HasForeignKey(t => t.BELONG_ROLE_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserGroup).WithMany(t => t.Nav_BelongRoleGroups).HasForeignKey(t => t.USER_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
17
APT.BaseData.Data/Mapping/FM/FMUserGroupBelongRoleMap.cs
Normal file
17
APT.BaseData.Data/Mapping/FM/FMUserGroupBelongRoleMap.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserGroupBelongRoleMap : APTEntityBaseMap<T_FM_USER_GROUP_BELONG_ROLE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_GROUP_BELONG_ROLE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_BelongRole).WithMany().HasForeignKey(t => t.BELONG_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserGroup).WithMany(t => t.Nav_BelongRoles).HasForeignKey(t => t.USER_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM.System
|
||||
{
|
||||
public class FMUserGroupBelongUserGroupMap : APTEntityBaseMap<T_FM_USER_GROUP_BELONG_U_G>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_GROUP_BELONG_U_G> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_BelongUserGroup).WithMany().HasForeignKey(t => t.BELONG_USER_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_UserGroup).WithMany(t => t.Nav_BelongUserGroups).HasForeignKey(t => t.USER_GROUP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
APT.BaseData.Data/Mapping/FM/FMUserGroupMap.cs
Normal file
21
APT.BaseData.Data/Mapping/FM/FMUserGroupMap.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserGroupMap: APTEntityBaseMap<T_FM_USER_GROUP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_GROUP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.CODE)
|
||||
.HasMaxLength(50);
|
||||
}
|
||||
}
|
||||
}
|
||||
59
APT.BaseData.Data/Mapping/FM/FMUserMap.cs
Normal file
59
APT.BaseData.Data/Mapping/FM/FMUserMap.cs
Normal file
@ -0,0 +1,59 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserMap : APTEntityBaseMap<T_FM_USER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.CODE).IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
|
||||
builder.Property(t => t.PHONE)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.PASSWORD)
|
||||
.HasMaxLength(128);
|
||||
|
||||
|
||||
builder.Property(t => t.REMARK).HasMaxLength(300);
|
||||
|
||||
builder.HasOne(t => t.Nav_Department).WithMany(t => t.Nav_UserList).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
builder.HasOne(t => t.Nav_Person).WithOne(t => t.Nav_User).HasForeignKey<T_FM_USER>(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.TEAMNAME);
|
||||
builder.Ignore(t => t.Team);
|
||||
builder.Property(t => t.ID_CARD)
|
||||
.HasMaxLength(50);
|
||||
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Ignore(t => t.TEAM_ID);
|
||||
builder.Ignore(t => t.Tenant);
|
||||
builder.Ignore(t => t.IS_SIGN);
|
||||
builder.Property(t => t.MineType)
|
||||
.HasMaxLength(50);
|
||||
builder.Ignore(t => t.IS_SIGN);
|
||||
builder.Ignore(t => t.NATIONALITY);
|
||||
builder.Ignore(t => t.BIRTHDAY);
|
||||
builder.Ignore(t => t.POLITICALSTATUE);
|
||||
builder.Ignore(t => t.JOBTITLE);
|
||||
builder.Ignore(t => t.CULTURALLEVEL);
|
||||
builder.Ignore(t => t.WORKDATE);
|
||||
builder.Ignore(t => t.POST_CODE);
|
||||
builder.Ignore(t => t.DEPARTMENT_CODE);
|
||||
builder.Ignore(t => t.Nav_Works);
|
||||
builder.Ignore(t => t.Nav_Skills);
|
||||
builder.Ignore(t => t.Nav_IDCardFiles);
|
||||
builder.Ignore(t => t.Nav_EducationFiles);
|
||||
builder.Ignore(t => t.Nav_CertificateFiles);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMUserPhotoFileMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMUserPhotoFileMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMUserPhotoFileMap : APTEntityBaseMap<T_FM_USER_PHOTO_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_USER_PHOTO_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
//relation
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t=>t.Nav_User).WithMany(t=>t.Nav_UserPhotoFiles).HasForeignKey(t=>t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMWareHouseMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMWareHouseMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWarehouseMap: APTEntityBaseMap<T_FM_WAREHOUSE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WAREHOUSE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(200);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
builder.HasOne(o => o.Parent).WithMany().HasForeignKey(o => o.Parent_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMWorkCalendarMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMWorkCalendarMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkCalendarMap : APTEntityBaseMap<T_FM_WORK_CALENDAR>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORK_CALENDAR> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
22
APT.BaseData.Data/Mapping/FM/FMWorkStageCalendarMap.cs
Normal file
22
APT.BaseData.Data/Mapping/FM/FMWorkStageCalendarMap.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkStageCalendarMap : APTEntityBaseMap<T_FM_WORKSTAGE_CALENDAR>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE_CALENDAR> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_Class).WithMany()
|
||||
.HasForeignKey(t => t.CLASS_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Workstage).WithMany()
|
||||
.HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
|
||||
builder.Ignore(t => t.TmpTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkStageCalendarSchDetailMap : APTEntityBaseMap<T_FM_WORKSTAGE_CALENDAR_SCH_DETAIL>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE_CALENDAR_SCH_DETAIL> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/FM/FMWorkStageDetailsMap.cs
Normal file
19
APT.BaseData.Data/Mapping/FM/FMWorkStageDetailsMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkStageDetailsMap : APTEntityBaseMap<T_FM_WORKSTAGE_DETAILS>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE_DETAILS> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_WorkStage).WithMany(t => t.Nav_Details).HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_WorkStageChild).WithMany().HasForeignKey(t => t.WORKSTAGE_CHILD_ID);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
21
APT.BaseData.Data/Mapping/FM/FMWorkStageManuResourceMap.cs
Normal file
21
APT.BaseData.Data/Mapping/FM/FMWorkStageManuResourceMap.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkStageManuResourceMap : APTEntityBaseMap<T_FM_WORKSTAGE_MANU_RESOURCE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE_MANU_RESOURCE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_ManuResource).WithMany().HasForeignKey(t => t.MANU_RESOURCE_ID);
|
||||
builder.HasOne(t => t.Nav_Workstage).WithMany(t => t.Nav_ManuResources).HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
38
APT.BaseData.Data/Mapping/FM/FMWorkStageMap.cs
Normal file
38
APT.BaseData.Data/Mapping/FM/FMWorkStageMap.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkStageMap : APTEntityBaseMap<T_FM_WORKSTAGE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(100);
|
||||
builder.Property(t => t.NAME).HasMaxLength(300);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(600);
|
||||
builder.Property(t => t.BAR_CODE).HasMaxLength(300);
|
||||
builder.Property(t => t.STATUS_DESC).HasMaxLength(500);
|
||||
builder.Property(t => t.EXT_NAME).HasMaxLength(50);
|
||||
builder.Ignore(t => t.OccRadio);
|
||||
builder.HasOne(t => t.Nav_Procedure).WithMany().HasForeignKey(t => t.PROCEDURE_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID);
|
||||
|
||||
//builder.HasOne(t => t.Nav_Work).WithMany().HasForeignKey(t => t.WORK_ID);
|
||||
|
||||
builder.HasOne(t => t.Nav_WorkStage).WithMany().HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
|
||||
builder.HasMany(t => t.Nav_Attrs).WithOne().HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
builder.HasIndex(o => o.CODE);
|
||||
builder.HasIndex(o => o.NAME);
|
||||
builder.HasIndex(o => o.CREATE_TIME);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/FM/FMWorkstageExtStageMap.cs
Normal file
20
APT.BaseData.Data/Mapping/FM/FMWorkstageExtStageMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMWorkstageExtStageMap : APTEntityBaseMap<T_FM_WORKSTAGE_EXT_STAGE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_WORKSTAGE_EXT_STAGE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.EXT_STAGE_NAME).HasMaxLength(200);
|
||||
builder.HasOne(t => t.Nav_Workstage).WithMany(t=>t.Nav_ExtStages).HasForeignKey(t => t.WORKSTAGE_ID);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
27
APT.BaseData.Data/Mapping/FM/MMLineMap.cs
Normal file
27
APT.BaseData.Data/Mapping/FM/MMLineMap.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMLineMap : APTEntityBaseMap<T_FM_LINE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_LINE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME).HasMaxLength(50);
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.LINE_PRINCIPAL).HasMaxLength(50);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(500);
|
||||
builder.Property(t => t.EXT_PROCEDURE_CODE).HasMaxLength(200);
|
||||
|
||||
#region relation
|
||||
builder.HasMany(t => t.Nav_LineStages).WithOne()
|
||||
.HasForeignKey(t => t.LINE_ID);
|
||||
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
16
APT.BaseData.Data/Mapping/FM/MMLineStageMap.cs
Normal file
16
APT.BaseData.Data/Mapping/FM/MMLineStageMap.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class FMLineStageMap : APTEntityBaseMap<T_FM_LINE_STAGE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_FM_LINE_STAGE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.HasOne(t => t.Nav_Workstage).WithMany().HasForeignKey(t => t.STAGE_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/FM/PFSysLogMap.cs
Normal file
23
APT.BaseData.Data/Mapping/FM/PFSysLogMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.FM
|
||||
{
|
||||
public class PFSysLogMap : APTEntityBaseMap<T_PF_SYS_LOG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_SYS_LOG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.LOG_TITLE).HasMaxLength(600);
|
||||
builder.Property(t => t.LOG_DATA).HasMaxLength(2000);
|
||||
|
||||
builder.HasOne(t => t.Nav_LogForm).WithMany().HasForeignKey(t => t.LOG_FORM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.Property(t => t.HOST_NAME).HasMaxLength(200);
|
||||
builder.Property(t => t.BROWSER_NAME).HasMaxLength(300);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
39
APT.BaseData.Data/Mapping/PF/PFAppMenuMap.cs
Normal file
39
APT.BaseData.Data/Mapping/PF/PFAppMenuMap.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFAppMenuMap : TreeEntityBaseMap<T_PF_APPMENU>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_APPMENU> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.MENU_FORM_PARAMS)
|
||||
.HasMaxLength(300);
|
||||
|
||||
builder.Property(t => t.IMG)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.HasOne(t => t.Nav_Picture).
|
||||
WithMany().HasForeignKey(t => t.PICTURE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
|
||||
builder.Property(t => t.ICON)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NUM);
|
||||
|
||||
builder.HasOne(t => t.Nav_MenuForm).WithMany().HasForeignKey(t => t.MENU_FORM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
builder.Ignore(t => t.VIRTUAL_URL);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
40
APT.BaseData.Data/Mapping/PF/PFBtnMap.cs
Normal file
40
APT.BaseData.Data/Mapping/PF/PFBtnMap.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFBtnMap : APTEntityBaseMap<T_PF_BTN>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_BTN> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.ICON)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.INPUT_SAVE_FIELD)
|
||||
.HasMaxLength(150);
|
||||
builder.Property(t => t.INPUT_NAV_FIELD)
|
||||
.HasMaxLength(150);
|
||||
|
||||
builder.Property(t => t.CSS)
|
||||
.HasMaxLength(100);
|
||||
|
||||
builder.Property(t => t.LABEL)
|
||||
.HasMaxLength(64);
|
||||
|
||||
builder.Property(t => t.CLICK_EVENT)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.BTN_CONDITION)
|
||||
.HasMaxLength(200);
|
||||
builder.Property(t => t.CODE)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.FORM_CODE)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.WORD_TEMPLATE_CODE)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.CUSTOM_PARAMS).HasMaxLength(200);
|
||||
builder.Property(t => t.API_URL).HasMaxLength(200);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
36
APT.BaseData.Data/Mapping/PF/PFClientMenuMap.cs
Normal file
36
APT.BaseData.Data/Mapping/PF/PFClientMenuMap.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFClientMenuMap : TreeEntityBaseMap<T_PF_CLIENT_MENU>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_CLIENT_MENU> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
// Properties
|
||||
builder.Property(t =>t.NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
|
||||
builder.Property(t => t.MENU_FORM_PARAMS)
|
||||
.HasMaxLength(300);
|
||||
|
||||
builder.Property(t => t.IMG)
|
||||
.HasMaxLength(50);
|
||||
|
||||
|
||||
builder.Property(t => t.ICON)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.NUM);
|
||||
|
||||
builder.HasOne(t => t.Nav_MenuForm).WithMany().HasForeignKey(t => t.MENU_FORM_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
builder.Ignore(t => t.VIRTUAL_URL);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(400);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/PF/PFCodeRuleMap.cs
Normal file
20
APT.BaseData.Data/Mapping/PF/PFCodeRuleMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFCodeRuleMap :APTEntityBaseMap<T_PF_CODE_RULE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_CODE_RULE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE_TYPE);
|
||||
|
||||
builder.Property(t => t.CODE_PREFIX)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.CURRENT_DATA)
|
||||
.HasMaxLength(20);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
APT.BaseData.Data/Mapping/PF/PFCodeRuleSerialLogMap.cs
Normal file
19
APT.BaseData.Data/Mapping/PF/PFCodeRuleSerialLogMap.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFCodeRuleSerialLogMap : APTEntityBaseMap<T_PF_CODE_RULE_SERIAL_LOG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_CODE_RULE_SERIAL_LOG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.SERIAL)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.DATE_VALUE)
|
||||
.HasMaxLength(30);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
APT.BaseData.Data/Mapping/PF/PFColumnFilterMap.cs
Normal file
18
APT.BaseData.Data/Mapping/PF/PFColumnFilterMap.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFColumnFilterMap : APTEntityBaseMap<T_PF_COLUMN_FILTER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_COLUMN_FILTER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.FIELD_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.VALUE).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_Column).WithMany(t => t.Nav_Filters).HasForeignKey(t => t.COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
67
APT.BaseData.Data/Mapping/PF/PFColumnMap.cs
Normal file
67
APT.BaseData.Data/Mapping/PF/PFColumnMap.cs
Normal file
@ -0,0 +1,67 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFColumnMap : APTEntityBaseMap<T_PF_COLUMN>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_COLUMN> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
// Properties
|
||||
builder.Property(t => t.TABLE_NAME)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.FIELD_NAME)
|
||||
.HasMaxLength(100);
|
||||
|
||||
builder.Property(t => t.LABEL)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.ENUM)
|
||||
.HasMaxLength(64);
|
||||
|
||||
builder.Property(t => t.VALIDATA_TYPE)
|
||||
.HasMaxLength(5);
|
||||
|
||||
builder.Property(t => t.FORMAT)
|
||||
.HasMaxLength(600);
|
||||
//builder.Property(t => t.Mapping_Table).HasMaxLength(100);
|
||||
builder.Property(t => t.MERGE_CELLS).HasMaxLength(600);
|
||||
|
||||
//builder.Ignore(t => t.CREATER_ID);
|
||||
|
||||
//builder.HasOptional(t => t.Nav_Creater).WithMany().HasForeignKey(t => t.CREATER_ID);
|
||||
|
||||
builder.Property(t => t.SHOW_FORM_CODE).HasMaxLength(60);
|
||||
builder.Property(t => t.SHOW_ID_FIELD).HasMaxLength(500);
|
||||
|
||||
builder.Property(t => t.CUSTOM_PARAMS).HasMaxLength(600);
|
||||
|
||||
builder.Property(t => t.INPUT_DATA_API)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.INPUT_SORT_FIELD)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_SORT_ORDER)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.INPUT_ID_FIELD)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.INPUT_FILTER_FIELD)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_SHOW_FIELD)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_LABEL_FIELD)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_SAVE_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.INPUT_NAV_FIELD)
|
||||
.HasMaxLength(600);
|
||||
|
||||
|
||||
builder.HasOne(t => t.Nav_PageTablePanel).WithMany().HasForeignKey(t => t.PAGE_TABLE_PANEL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
APT.BaseData.Data/Mapping/PF/PFDefectCodeMap.cs
Normal file
23
APT.BaseData.Data/Mapping/PF/PFDefectCodeMap.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using APT.BaseData.Domain.Entities.Platform;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.Platform
|
||||
{
|
||||
public class PFDefectCodeMap : TreeEntityBaseMap<T_PF_DEFECT_CODE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_DEFECT_CODE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.CODE)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(20);
|
||||
builder.HasOne(t => t.Nav_DefectGrade).WithMany(t => t.Nav_DefectCodes).HasForeignKey(t => t.BAD_GRADE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/PF/PFDefectGradeMap.cs
Normal file
20
APT.BaseData.Data/Mapping/PF/PFDefectGradeMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities.Platform;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping.Platform
|
||||
{
|
||||
public class PFDefectGradeMap : APTEntityBaseMap<T_PF_DEFECT_GRADE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_DEFECT_GRADE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.CODE)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.NAME)
|
||||
.HasMaxLength(20);
|
||||
builder.Property(t => t.SEVERITY);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFillMapDetailMap.cs
Normal file
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFillMapDetailMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFEditColumnFillMapDetailMap : APTEntityBaseMap<T_PF_EDIT_COLUMN_FILL_MAP_D>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_EDIT_COLUMN_FILL_MAP_D> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.SRC_FIELD_NAME).HasMaxLength(400);
|
||||
builder.Property(t => t.DEST_FIELD_NAME).HasMaxLength(400);
|
||||
|
||||
builder.HasOne(t => t.Nav_EditColumnFillMap).WithMany(t => t.Nav_Details).HasForeignKey(t => t.EDIT_COLUMN_FILL_MAP_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFillMapMap.cs
Normal file
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFillMapMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFEditColumnFillMapMap : APTEntityBaseMap<T_PF_EDIT_COLUMN_FILL_MAP>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_EDIT_COLUMN_FILL_MAP> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.SRC_NAV).HasMaxLength(200);
|
||||
builder.Property(t => t.DEST_NAV).HasMaxLength(200);
|
||||
|
||||
builder.HasOne(t => t.Nav_EditColumn).WithMany(t => t.Nav_FillMaps).HasForeignKey(t => t.EDIT_COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFilterMap.cs
Normal file
20
APT.BaseData.Data/Mapping/PF/PFEditColumnFilterMap.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFEditColumnFilterMap : APTEntityBaseMap<T_PF_EDIT_COLUMN_FILTER>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_EDIT_COLUMN_FILTER> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.FIELD_NAME).HasMaxLength(100);
|
||||
builder.Property(t => t.VALUE).HasMaxLength(100);
|
||||
builder.HasOne(t => t.Nav_EditColumn).WithMany(t => t.Nav_Filters).HasForeignKey(t => t.EDIT_COLUMN_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
71
APT.BaseData.Data/Mapping/PF/PFEditColumnMap.cs
Normal file
71
APT.BaseData.Data/Mapping/PF/PFEditColumnMap.cs
Normal file
@ -0,0 +1,71 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.Infrastructure.EF.Map;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace APT.BaseData.Data.Mapping
|
||||
{
|
||||
public class PFEditColumnMap : APTEntityBaseMap<T_PF_EDIT_COLUMN>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_EDIT_COLUMN> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
|
||||
builder.Property(t => t.CODE).HasMaxLength(200);
|
||||
builder.Property(t => t.FIELD_NAME)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.LABEL)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.ENUM)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.TYPE_NAME)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.VALIDATA_TYPE)
|
||||
.HasMaxLength(5);
|
||||
builder.Property(t => t.FORMAT)
|
||||
.HasMaxLength(60);
|
||||
builder.Property(t => t.QUERY_FORMAT)
|
||||
.HasMaxLength(60);
|
||||
builder.Property(t => t.INPUT_DATA_API)
|
||||
.HasMaxLength(64);
|
||||
builder.Property(t => t.INPUT_SORT_FIELD)
|
||||
.HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_SORT_ORDER)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.INPUT_FILTER_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.INPUT_SHOW_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.VERIFY_MSG)
|
||||
.HasMaxLength(50);
|
||||
builder.Property(t => t.INPUT_LABEL_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.INPUT_SAVE_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.INPUT_NAV_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.SELECTD_LABEL_FIELD)
|
||||
.HasMaxLength(50);
|
||||
|
||||
builder.Property(t => t.INPUT_SORT_FIELD)
|
||||
.HasMaxLength(600);
|
||||
builder.Property(t => t.INPUT_SORT_ORDER)
|
||||
.HasMaxLength(600);
|
||||
|
||||
builder.Property(t => t.DEFAULT_VALUE).HasMaxLength(50);
|
||||
builder.Property(t => t.REMARK).HasMaxLength(80);
|
||||
builder.Property(t => t.SHOW_FORM_CODE).HasMaxLength(60);
|
||||
builder.Property(t => t.SHOW_ID_FIELD).HasMaxLength(500);
|
||||
builder.Property(t => t.EDIT_FORM_CODE).HasMaxLength(60);
|
||||
builder.Property(t => t.EDIT_FORM_FILTER).HasMaxLength(30);
|
||||
builder.Property(t => t.EDIT_FORM_FILTER_VALUE).HasMaxLength(30);
|
||||
builder.Property(t => t.PROMPT_INFO).HasMaxLength(50);
|
||||
builder.Property(t => t.VERIFY_EXPRESS).HasMaxLength(100);
|
||||
builder.Property(t => t.INPUT_ID_FIELD).HasMaxLength(200);
|
||||
|
||||
builder.HasOne(t => t.Nav_PageEditPanel).WithMany().HasForeignKey(t => t.PAGE_EDIT_PANEL_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
builder.Property(t => t.VERIFY_ERROR_INFO).HasMaxLength(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user