Hello @ismcagdas it;s seems to br that you didn't read the post very well i know how to get current language of users in both client side and server side that is not problem at all so let me explain the issue with an example
in frontend i have link like that <a class="postlink" href="http://127.0.0.1/news?id=10">http://127.0.0.1/news?id=10</a> because website contains four different language for anonymous users he will see that page in default language of the application and the same will happens if i share this url on Facebook or Google+ Feed but what i need to achieve is to make this url like that <a class="postlink" href="http://127.0.0.1/en/news?id=10">http://127.0.0.1/en/news?id=10</a> for English <a class="postlink" href="http://127.0.0.1/ar/news?id=10">http://127.0.0.1/ar/news?id=10</a> for Arabic <a class="postlink" href="http://127.0.0.1/sp/news?id=10">http://127.0.0.1/sp/news?id=10</a> for Spain and so on
by using this behavior user will get the correct language from the first time he visited my website and everyone be happy :) hope this example is clear enough Thanks
Hi I'll try thank you
Hi @ ismcagdas
yes i'm asking about migration because i going to production mode and i didn't create migrations classes to changes i made to database but the migrations done from your side exists and i didn't delete it so i 'll try to add single migration as you said and i'll let you know i have a further questions
thanks
done [https://github.com/aspnetzero/aspnet-zero/issues/490])
Hello actually it was a problem and been fixed in v3.2 please refer to this link [https://github.com/aspnetzero/aspnet-zero/issues/427])
please refer to this link [https://www.ag-grid.com/])
Hi @ismcagdas Thanks for your reply
@Edvin Thanks for sharing with us Datagrid it's great no doubt my opinion Jtable still have the advantage and have more features , to be clear Jtable need more fixes specially UI but for the basic features it very great
Regards
.........................................................................................................................................................................................
Hi @ismcagdas
[AbpAllowAnonymous]
[UnitOfWork(IsDisabled = true)]
public async Task<ServiceListFullDto> GetRecord(long? id)
{
ServiceListFullDto entityListDto = null;
if (id.HasValue)
{
using (
var unitOfWork =
UnitOfWorkManager.Begin(new ExtendedUnitOfWorkOptions() { UpdateLastModified = false }))
{
var record = await _serviceRepository.GetAsync(id.Value);
if (record.IsActive)
{
entityListDto = record.MapTo<ServiceListFullDto>();
record.Views += 1;
await _serviceRepository.UpdateAsync(record);
unitOfWork.Complete();
}
}
}
return entityListDto;
}
Hello everyone @reddogaw
thank you for your solution actually i have the same situation and i tried your solution but i got an exception of type Null Reference Exception ExtendedUnitOfWorkOptions always null i don't why? i tried to inject it directly to my appservice and the same error you can see it in attached image