完善模型通用接口的无限层级一对一和单层级一对多
This commit is contained in:
@@ -15,11 +15,11 @@ public class VmodelMapper : IRegister
|
||||
{
|
||||
public void Register(TypeAdapterConfig config)
|
||||
{
|
||||
config.ForType<VmGetInput, VmListInput>()
|
||||
config.ForType<VmGetInput, VmQueryInput>()
|
||||
.Map(dest => dest.psize, src => 1)
|
||||
.Map(dest => dest.pnum, src => 0)
|
||||
.Map(dest => dest.q, src => string.IsNullOrEmpty(src.q) ? null : src.q.ToObject<DObject>());
|
||||
config.ForType<VmGetListInput, VmListInput>()
|
||||
config.ForType<VmGetListInput, VmQueryInput>()
|
||||
.Map(dest => dest.q, src => string.IsNullOrEmpty(src.q) ? null : src.q.ToObject<DObject>());
|
||||
config.ForType<DbColumnInfo, VmDbProp>()
|
||||
.Map(dest => dest.code, src => src.DbColumnName.ToCamel())
|
||||
|
||||
Reference in New Issue
Block a user