コード例 #1
0
 /// <summary>
 /// 删除值
 /// </summary>
 /// <param name="obj"></param>
 private async void Delete(DynamicEntityPropertyDto obj)
 {
     if (await dialog.Question(Local.Localize("DeleteDynamicPropertyMessage"), AppCommonConsts.DialogIdentifier))
     {
         await SetBusyAsync(async() =>
         {
             await WebRequest.Execute(() =>
                                      appService.Delete(obj.Id),
                                      GetAllPropertiesOfAnEntity);
         });
     }
 }
コード例 #2
0
 public async Task Update(DynamicEntityPropertyDto dto)
 {
     await _dynamicEntityPropertyManager.UpdateAsync(ObjectMapper.Map <DynamicEntityProperty>(dto));
 }
コード例 #3
0
 public async Task Add(DynamicEntityPropertyDto dto)
 {
     dto.TenantId = AbpSession.TenantId;
     await _dynamicEntityPropertyManager.AddAsync(ObjectMapper.Map <DynamicEntityProperty>(dto));
 }