获取vmodel详情时钻取导航属性的模型
This commit is contained in:
@@ -100,6 +100,7 @@ public class VmodelAppService : VengineAppService<Vmodel>, IVmodelAppService
|
||||
Vmodel vm = input.data.Adapt<Vmodel>();
|
||||
vm.areaCode = vm.areaCode.ToKebab();
|
||||
vm.vmCode = vm.vmCode.ToKebab();
|
||||
vm.navProps.ForEach(a => a.naviModel = null);
|
||||
await _db.Updateable(vm).WhereColumns(a => a.id).ExecuteCommandAsync();
|
||||
return input;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class VmNavProp : VmBaseProp
|
||||
//[JsonIgnore]
|
||||
//public string? midTable { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
||||
public Vmodel? naviModel { get; set; }
|
||||
|
||||
#endregion Properties
|
||||
|
||||
Reference in New Issue
Block a user