!22 update ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplDto.txt.
Merge pull request !22 from xbzhu/N/A
This commit is contained in:
commit
cf9777b35e
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using ${options.ModelsNamespace}.Dto;
|
using ${options.ModelsNamespace}.Dto;
|
||||||
using ${options.ModelsNamespace}.Models;
|
using ${options.ModelsNamespace}.Models;
|
||||||
$if(replaceDto.ShowBtnExport)
|
$if(replaceDto.ShowBtnExport)
|
||||||
@ -43,6 +44,9 @@ $if(item.IsExport)
|
|||||||
$else
|
$else
|
||||||
[ExcelIgnore]
|
[ExcelIgnore]
|
||||||
$end
|
$end
|
||||||
|
$end
|
||||||
|
$if(item.CsharpType == "long")
|
||||||
|
[JsonConverter(typeof(ValueToStringConverter))]
|
||||||
$end
|
$end
|
||||||
public $item.CsharpType$item.RequiredStr $item.CsharpField { get; set; }
|
public $item.CsharpType$item.RequiredStr $item.CsharpField { get; set; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user