¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | |
| | | using GenerateCode_WeiBen_WMS.Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | |
| | | namespace GenerateCode_GEBrilliantFactory |
| | | { |
| | | /// <summary> |
| | | /// çææ¥è¯¢å®ä½ç±» |
| | | /// </summary> |
| | | public class UpdateDto_Generate : BaseGenerate |
| | | { |
| | | public static string CreateText(GenerateCodeParam param) |
| | | { |
| | | var str = TextHelper.ReadText(@"Templete\Entity\UpdateDto模æ¿.txt"); |
| | | CommonReplace(ref str); |
| | | |
| | | CommonHelper.CommonReplaceStr(param, ref str); |
| | | |
| | | |
| | | return str; |
| | | } |
| | | } |
| | | } |
| | |
| | | <Compile Include="Generate\BaseGenerate.cs" /> |
| | | <Compile Include="Generate\Controller\Controller_Generate.cs" /> |
| | | <Compile Include="Generate\Entity\AddModel_Generate.cs" /> |
| | | <Compile Include="Generate\Entity\UpdateDto_Generate.cs" /> |
| | | <Compile Include="Generate\Entity\CreateOrUpdateDtoBase_Generate.cs" /> |
| | | <Compile Include="Generate\Entity\CreateDto_Generate.cs" /> |
| | | <Compile Include="Generate\Entity\OutputModel_Generate.cs" /> |
| | |
| | | <Content Include="Templete\Entity\AddModel模æ¿.txt"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Include="Templete\Entity\UpdateDto模æ¿.txt"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Include="Templete\Entity\CreateDto模æ¿.txt"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | |
| | | str_generate = CreateDto_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}CreateDto.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //3ãçæ CreateOrUpdateDtoBase æä»¶ |
| | | //3ãçæ UpdateDto æä»¶ |
| | | str_generate = UpdateDto_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}UpdateDto.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //4ãçæ CreateOrUpdateDtoBase æä»¶ |
| | | str_generate = CreateOrUpdateDtoBase_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}CreateOrUpdateDtoBase.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | |
| | | namespace CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.WmsMaterials; |
| | | namespace CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$; |
| | | |
| | | /// <summary> |
| | | /// $ChinaComment$åå»ºåæ°å¯¹è±¡ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Volo.Abp.Domain.Entities; |
| | | namespace CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$; |
| | | |
| | | /// <summary> |
| | | /// $ChinaComment$æ´æ°åæ°å¯¹è±¡ |
| | | /// </summary> |
| | | public class $EntityName$UpdateDto : $EntityName$CreateOrUpdateDtoBase, IHasConcurrencyStamp |
| | | { |
| | | /// <summary> |
| | | /// å¹¶åæ³ |
| | | /// </summary> |
| | | public string ConcurrencyStamp { get; set; } |
| | | } |