Activities of "zhongfang"

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 81 to 90 of 139 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 21, 2026, 11:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.