Could you share the error logs?
Hi,
You can change the ApplicationConfigurationDtoCacheAbsoluteExpiration
of the AbpAspNetCoreMvcClientCacheOptions
.
The value is 300s by default.
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/AbpAspNetCoreMvcClientCacheOptions.cs
Hi,
This is very strange. could you re-create the database. and try in the incognito window?
Hi
There is no Volo.Abp.Account
package.
You should add the account module to the project.
Sorry, I made a mistake. you don't need it.
Hi,
I guess you are missing this step: https://support.abp.io/QA/Questions/5982#answer-3a0e4ac8-9583-fd36-2fe6-fb67b60f678a
I have shared the project with you. you can check your email.
In summary, I'm raising a concern with the Volo.Abp.Auditing module, as it currently fails to track changes to the properties of value objects. This issue stems from an error in inserting data into the EntityChanges table, which does not allow null values in the EntityId column.
Yes, this is by design. because the ValueObject has no IDs.
Anyway, you can change it if you want.
builder.Entity<EntityChange>(b =>
{
b.Property(x => x.EntityId).IsRequired(false);
});
Hi,
So publishing event manually is not gonna work since the same event will be triggered twice one for previous record and one for new record. Instead it should be triggered once only for the new record.
Because you added an event to the constructor, there will always be an event here.
You can consider adding a method, for example:
public class Book : FullAuditedAggregateRoot<Guid>, IMultiTenant
{
public string Name { get; private set; }
public Guid? TenantId { get; private set; }
public Book(Guid id, string name, Guid? tenantId) : base(id)
{
Check.NotNull(name, nameof(name));
Name= name;
TenantId = tenantId;
}
public static Book Create(Guid id, string name, Guid? tenantId)
{
var book = new Book(id, name, tenantId);
book.AddLocalEvent(new BookCreatedEto()
{
Id = id,
Name = name,
TenantId = tenantId
});
return book;
}
}
Bulk operations for abp framework (https://docs.abp.io/en/abp/7.4/Repositories#bulk-operations). Is it adjusted for performance? or it is just an extension for not to do the loop?
The ZEntityFramework is the pro library, It will have better performance. ABP uses the EF Core native API: https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext.addrangeasync?view=efcore-7.0
Hi,
You can call the IPermissionDefinitionManager.GetGroupsAsync
on the OnApplicationInitialization
.
https://github.com/abpframework/abp/blob/0542f715aacac98d1723a146b26aaa64f7f283d7/framework/src/Volo.Abp.Authorization.Abstractions/Volo/Abp/Authorization/Permissions/IPermissionDefinitionManager.cs#L14
I have another project running the latest ABP.io V7.4.0 and noticed that it will hit on startup. What are the differences?
Because we introduced dynamic permissions, it will be loaded when the application starts