Esempio n. 1
0
 public virtual void Create(SettingInfo settingInfo)
 {
     using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
     {
         using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
         {
             _settingRepository.Insert(settingInfo.ToSetting());
             _unitOfWorkManager.Current.SaveChanges();
         }
     }
 }
Esempio n. 2
0
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
     {
         using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
         {
             await _settingRepository.InsertAsync(settingInfo.ToSetting());
             await _unitOfWorkManager.Current.SaveChangesAsync();
         }
     }
 }
Esempio n. 3
0
        public virtual async Task CreateAsync(SettingInfo settingInfo)
        {
            using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
            {
                using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
                {
                    await _settingRepository.InsertAsync(settingInfo.ToSetting());

                    await _unitOfWorkManager.Current.SaveChangesAsync();
                }
            }
        }
Esempio n. 4
0
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     await _settingRepository.InsertAsync(settingInfo.ToSetting());
 }
Esempio n. 5
0
 public virtual void Create(SettingInfo settingInfo)
 {
     _settingRepository.Insert(settingInfo.ToSetting());
 }
Esempio n. 6
0
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     await _settingRepository.InsertAsync(settingInfo.ToSetting());
 }