/builds/change/account/src/Yee.Change.Account.Domain.Shared/Yee.Change.Account.Domain.Shared.csproj : error NU1103: Unable to find a stable package Volo.Abp.Identity.Pro.Domain.Shared with version (>= 5.3.0)
The newest stable version of above package is 5.0.2?
var query = dbContext.Where(p => p.ItemKey == input.ItemKey && p.ItemType == input.ItemType).DistinctBy(p => p.EventTypeId);
I can not change the color of the text.
tks a lot!
thank you! all my questions have been resolved.
The questions has changed, now there are 2 as below
I want to get all users in the database, so I disable the DataFilter. But it seems that the IMultiTenant has not been disabled. I only get the users in the current tenant.
using (this.DataFilter.Disable<IMultiTenant>())
{
users = await userRepository.GetListAsync();
}
Thank you!
public class SerialNumberMoreAppService : AccountAppService, ISerialNumberMoreAppService
{
public virtual async Task<long> GetNextValueAsync()
{
SerialNumberManager repository = this.LazyServiceProvider.LazyGetRequiredService<SerialNumberManager>();
var netSerial = await repository.CreateAsync("");
await UnitOfWorkManager.Current.SaveChangesAsync();
return netSerial.Id;
}
}
but user.SetProperty only valid for the first user?
I want to reset propertiy for all users.
foreach (var user in users)
{
var number = await serialNumberMoreAppService.GetNextValueAsync();
user.SetProperty(ChangeUserConsts.NumberIdPropertityName, number);
await UnitOfWorkManager.Current.SaveChangesAsync();
}
Oh, It is caused by Automapper. My custome module missed settings. After I resolve my own Automapper configuration. program starte successfully.
abp install-libs
Thanks! After I run the command abp install-libs on solution folder, the error has been fixed.