Starts in:
1 DAY
12 HRS
45 MIN
37 SEC
Starts in:
1 D
12 H
45 M
37 S

Activities of "zhongfang"

/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?

Answer

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

1. ExtraPropertity only Saved for the first one

2. Only return users of current tenant.

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!

replace Repository with Manager

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;
        }
    }

Can get increased id successfully, but ...

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

  • In visual studio
  • Right click on the solution
  • select 'Open in Terminal'
  • abp install-libs
  • return

Thanks! After I run the command abp install-libs on solution folder, the error has been fixed.

Oh, after I renamed the file, add -s. I can run the application now.

Showing 61 to 70 of 120 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06