fix代码生成问题
This commit is contained in:
parent
647e725ff9
commit
d6cd248e10
@ -9,7 +9,7 @@ using ${options.ModelsNamespace}.Models;
|
|||||||
using ${options.IServicsNamespace}.${options.SubNamespace}.I${options.SubNamespace}Service;
|
using ${options.IServicsNamespace}.${options.SubNamespace}.I${options.SubNamespace}Service;
|
||||||
using ${options.ApiControllerNamespace}.Extensions;
|
using ${options.ApiControllerNamespace}.Extensions;
|
||||||
using ${options.ApiControllerNamespace}.Filters;
|
using ${options.ApiControllerNamespace}.Filters;
|
||||||
using ${options.BaseNamespace}.Common;
|
using ${options.BaseNamespace}Common;
|
||||||
|
|
||||||
namespace ${options.ApiControllerNamespace}.Controllers
|
namespace ${options.ApiControllerNamespace}.Controllers
|
||||||
{
|
{
|
||||||
|
|||||||
@ -460,7 +460,7 @@ namespace ZR.CodeGenerator
|
|||||||
IsInsert = !column.IsIdentity || GenConstants.inputDtoNoField.Any(f => f.Contains(column.DbColumnName, StringComparison.OrdinalIgnoreCase)),//非自增字段都需要插入
|
IsInsert = !column.IsIdentity || GenConstants.inputDtoNoField.Any(f => f.Contains(column.DbColumnName, StringComparison.OrdinalIgnoreCase)),//非自增字段都需要插入
|
||||||
IsEdit = true,
|
IsEdit = true,
|
||||||
IsQuery = false,
|
IsQuery = false,
|
||||||
HtmlType = GenConstants.HTML_INPUT
|
HtmlType = GenConstants.HTML_INPUT,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (GenConstants.imageFiled.Any(f => column.DbColumnName.ToLower().Contains(f.ToLower())))
|
if (GenConstants.imageFiled.Any(f => column.DbColumnName.ToLower().Contains(f.ToLower())))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user