this sample of code to get data according to selected culture //====================================================== var cultureName= CultureInfo.CurrentCulture.Name; var dbContext = await GetDbContextAsync();
var result = (await GetDbSetAsync()) .Join(dbContext.Set<JournalVoucherStatusCulture>(), journalStatus => journalStatus.Id, journalStatusCulture => journalStatusCulture.VoucherStatusId, (journalStatus, journalStatusCulture) => new { journalStatus, journalStatusCulture }) .Where(a => a.journalStatus.JournalStatusTitle.Contains(fiscalYearStatusTitle) && a.journalStatusCulture.CultureId == cultureName) .Select(x => new JournalStatusCul { Id = x.journalStatus.Id, JournalStatusTitle = x.journalStatusCulture.JournalStatusTitle != null ? x.journalStatusCulture.JournalStatusTitle : x.journalStatus.JournalStatusTitle });
Thank you for quickly response : and it is working with me after but this line System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; in webModule but there is another error because i use this line in my services var cultureName = CultureInfo.CurrentCulture.Name; and check if cultureName =='ar' do somthing, but now this variable cultureName gives me empty string , could you please advice .
Dear Sir, I hope this message finds you well.
I am writing to inform you of an issue I encountered with the search bar functionality. Specifically, I have noticed the following problems:
1- The advanced filter works correctly when the Enter key is pressed. 2- The functionality does not work when using the submit button. 3- Re-entering the same search term causes the form to become unresponsive, regardless of whether I use the submit button or press Enter. 4- I have tried adding an alert for troubleshooting purposes, but it is also not functioning as expected. 5- To provide further clarification, I have attached a 2-minute video demonstrating the problem.
https://streamable.com/5p9uqu
Thank you for your attention to this matter.
Best regards,
I am trying to apply FluentValidation to the CreateUpdateZacatCompanyDto class, but the error messages from the CreateUpdateZacatCompanyDtoValidator, which inherits from AbstractValidator<CreateUpdateZacatCompanyDto>, are not being displayed.
I have created all the necessary classes and injected the configuration into the module. How can I ensure that the error messages are shown for each field?
hi sir when i create page from scratch manually (domain / ef / service / Dto ...... etc) i faced a problem into constructor injection if i inject repository or manager i got this error always like image below when i try it in swagger