Activities of "omer_yel"

Hi, we have a problem with datetime timezone conversion. We have set datetimekind as UTC to save datetime values in UTC format.

For demonstration purposes, we set our local time zone for currently logged in user.

Id specified in image send request for list. In retrieved list creationTime is in UTC format. We manually set localtime for creationTime, then it became local time. But output of request was unmodified. Its creation time in UTC format. As you see userIds are same.

  • Why does not setting user specific timezone work? Why does not it automatically convert UTC to local datetime properties?
  • Why does our manually changed creationTime reset itself to UTC format after existing appservice method?

What can we do to solve this problem?

I noticed i wrote app.UseAbpRequestLocalization(); twice. I remove below one. Result is still same. Any other advice?

Hello, We have issue to change API culture. We have created non-ABP external Blazor server UI project. We send request to api endpoints. But we can not specify request or client culture while sending. Culture info in sending on Accept-Language header.

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var app = context.GetApplicationBuilder();
    var env = context.GetEnvironment();

    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }

    var supportedCultures = new[]
    {
        new CultureInfo("en-GB"),
        new CultureInfo("tr-TR")
    };


    app.UseAbpRequestLocalization(options =>
    {
        options.DefaultRequestCulture = new RequestCulture("en-GB");
        options.SupportedCultures = supportedCultures;
        options.SupportedUICultures = supportedCultures;
        options.RequestCultureProviders = new List<IRequestCultureProvider>
            {   new AcceptLanguageHeaderRequestCultureProvider(),
                new QueryStringRequestCultureProvider(),
                new CookieRequestCultureProvider()};
    });

    app.UseAbpRequestLocalization();

    //app.UseStaticFiles();
    //app.MapStaticAssets();
    app.MapAbpStaticAssets();
    app.UseAbpSecurityHeaders();
    app.UseRouting();
    app.UseCors();
    app.UseAuthentication();

 

    app.UseUnitOfWork();
    app.UseDynamicClaims();
    app.UseAuthorization();



    app.UseSwagger();
    app.UseAbpSwaggerUI(options =>
    {
        options.SwaggerEndpoint("/swagger/v1/swagger.json", "Aizanoi API");

        var configuration = context.GetConfiguration();
        options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
    });
    
    app.UseAbpSerilogEnrichers();
    app.UseConfiguredEndpoints();
}

We have put above code into ApiHostModule.cs.

Our supported languages are "tr-TR" and "en-GB". How can we correctly configure our api to get culture from request Accept-Language header?

Thank you We solved the problem in a different way.

I have seen this. At line 38, it assigns all permission into custom given role. I also want to choose permission from all permission list. Then assign only chosen ones. Is there a practical way to choose permission?

  • ABP Framework version: v8.2.0
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi. I try to add custom role and set permission for that role. I have researched related creating seed data for customer role and permission. There are some solutions for creating role as seed data and adding all permission into that role. But I want to create several roles other than admin role like standard and basic. Furthermore i want to set specific permissions to them.

Can i define role on this class in order to separate permissions? Shortly I want to - create multiple role as seed data - specify permission for each role while seeding them

<br>

When mapping to CityWithNavigationPropertiesDto, it worked. Also using AsNoTracking prevented changing. Thanks for reply.

hi We tried your method but it did not work. We also tried AsnoTracking method. It worked. As you see previous code block, we make just get process. So even if ef core tracks the entities, it should not change database value. Why database updates occur? To prevent data corruption should we always use AsNoTracking method while getting list? is there any performance effect using AsNoTracking on project.

  • ABP Framework version: v8.2.0
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): tiered

On appservice we are getting data as list. After getting list, we change property value using for loop. We get successfully excepted result on UI and in list. Additionally row that related that data at sql also changes.

public virtual async Task<PagedResultDto<CityWithNavigationPropertiesDto>> GetListAsync(GetCitiesInput input) { var totalCount = await _cityRepository.GetCountAsync(input.FilterText, input.Name, input.IsActive, input.CountryId); var items = await _cityRepository.GetListWithNavigationPropertiesAsync(input.FilterText, input.Name, input.IsActive, input.CountryId, input.Sorting, input.MaxResultCount, input.SkipCount);

var tmp = items.FirstOrDefault(); tmp.City.Name = "newValue";

return new PagedResultDto<CityWithNavigationPropertiesDto> { TotalCount = totalCount, Items = ObjectMapper.Map<List<CityWithNavigationProperties>, List<CityWithNavigationPropertiesDto>>(items) }; }

For test purposes, as you see above code we assing 'newValue' first item of list. It is okey, it changes. But it also changes database row of it. We also disable UOW, but result is same. On appservice we just get list , not create or update entity, despite this it updates value.

--------------------------------------------------------------------------------------------- By the way, we renewed our license but our ticket count did not renew to 30.

  • ABP Framework version: v8.2.0
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Tiered
  • <br> Hi How can we extend IdentityUser entity as User? We want to add property into user and view them in AbpUser table. How can we achieve this without using extraproperty feature?
Showing 1 to 10 of 40 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.1.0-preview. Updated on December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.