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(); } } }
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(); } } }
public virtual async Task CreateAsync(SettingInfo settingInfo) { await _settingRepository.InsertAsync(settingInfo.ToSetting()); await _unitOfWorkManager.Current.SaveChangesAsync(); }
public void Create(SettingInfo settingInfo) { _settingRepository.Insert(settingInfo.ToSetting()); _unitOfWorkManager.Current.SaveChanges(); }
public Task CreateAsync(SettingInfo setting) { _settings.Add(setting.ToSetting()); return(_context.SaveChangesAsync()); }