hi
Please share the full code of your blazor component and _identityUserService
liming.ma@volosoft.com
Thanks.
hi
You can use _unitOfWorkManager to begin a new uow in the HandleEventAsync method, and set the isolationLevel if necessary.
hi
Please share some code of your background job
hi
If you just read and return to the frontend, I think there is generally no need to set this option. The default is enough.
hi
You can set the IsolationLevel for a new UnitOfWork.
https://learn.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-ver16
public static IUnitOfWork Begin(
[NotNull] this IUnitOfWorkManager unitOfWorkManager,
bool requiresNew = false,
bool isTransactional = false,
IsolationLevel? isolationLevel = null,
int? timeout = null)
{
Check.NotNull(unitOfWorkManager, nameof(unitOfWorkManager));
return unitOfWorkManager.Begin(new AbpUnitOfWorkOptions
{
IsTransactional = isTransactional,
IsolationLevel = isolationLevel,
Timeout = timeout
}, requiresNew);
}
hi
You can use the TenantManager/ITenantAppService to create a new tenant and then use IFeatureManager to set some features/editions for it.
https://github.com/abpframework/abp/pull/19382
hi
2.
You can use RolePermissionValueProvider.ProviderName as the Provider of a permission definition. You can't use Roles.Admin and Roles.Workshop.Owner.
group.AddPermission("MyPermission6").WithProviders(RolePermissionValueProvider.ProviderName);
If you want to grant permissions to a role, you don't need to do this.
You can use:
await permissionManager.SetForRoleAsync("your_role_name", TestPermissionNames.MyPermission1, true);
hi
Table 'timesheet_dev.abppermissiongroups' doesn't exist
Does the abppermissiongroups table exist on your database?
Are you using the same version of abp for all of your websites?
Can you share a project to reproduce this error?
We must look at the code or the project to troubleshoot the problem.