If other projects refer to high-version packages, you can only wait for abp to upgrade
You can try to add <PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.18" /> to your project.
You can get the current clientid. Then you can execute custom logic
public async Task<string> MyMethodAsync()
{
var clientIdClaim = CurrentUser.GetAllClaims().FirstOrDefault(x => x.Type == AbpClaimTypes.ClientId);
if (clientIdClaim != null)
{
if (clientIdClaim.Value == "public")
{
}
if (clientIdClaim.Value == "private")
{
}
}
}
hi
We are using the <PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.18" /> on 7.x
hi
Different units of work use different dbcontxt, so you have to put code in one unit of work.
hi
Method not found
Can you share some code/project to reproduce it? liming.ma@volosoft.com
hi
It seems the project still using the Sql Server.
You can try to search SqlServer keyword globally, then replace it to PostgreSQL
https://docs.abp.io/en/abp/latest/Entity-Framework-Core-PostgreSQL
hi
Please share with me a project that can reproduce the problem, Thanks liming.ma@volosoft.com
hi
Please remove UseDeveloperExceptionPage related code and catch the exception to see its code and message.
// if (env.IsDevelopment())
// {
// app.UseDeveloperExceptionPage();
// }
// else
// {
// app.UseErrorPage();
// app.UseHsts();
// }
app.Use(async (httpContext, func) =>
{
try
{
await func(httpContext);
}
catch (BusinessException e)
{
Console.WriteLine(e.Code);
throw;
}
});
hi
What the code of BusinessException?