The Abp package.
If you don't want the user management system (Module Zero), you'll need to implement IPermissionChecker
and replace IAuthorizationHelper
.
See this SO answer on Checking ABP permissions from claims.
Check your browser console for errors.
Yes. You can define an interface, e.g. IHasConcurrency
as suggested in aspnetboilerplate/aspnetboilerplate#50.
Article for EF Core: https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/concurrency?view=aspnetcore-2.0
A simple way to handle that in your DbContext with ABP v2.3.0+, adapted from EF6 answer in #4146:
protected override void ApplyAbpConceptsForModifiedEntity(EntityEntry entry, long? userId, EntityChangeReport changeReport)
{
if (entry.Entity is MyRowVersionEntity)
{
entry.OriginalValues["RowVersion"] = entry.CurrentValues["RowVersion"];
}
base.ApplyAbpConceptsForModifiedEntity(entry, userId, changeReport);
}
Your question title and code says EF Core.
User.IsActive
being false
means the admin disabled the account.
It is inappropriate for a user action to enable one's own account.
You should filter EntityChange
by ec.EntityId == entity.Id
, and include its ec.PropertyChanges
collection.
var entityChanges = _entityChangeRepository
.GetAllIncluding(ec => ec.PropertyChanges)
.Where(ec => ec.EntityId == entity.Id)
.ToList();
P.S. I did see your message before, but didn't understand how it related to the original question. Please create a new question in future.
Check the browser console for errors.
Try npm run full-build
.