do you have an Id property in your entity ? if so you also have number property which is identity. I think you are on the wrong way. I would not make number as identity column. Create a SequentialNumberRepository and keep the last number in a seperate table I'll not implement this manager but the signature can be
public interface ISequentialNumberManager : IDomainService
{
Task<int> GetNextAsync(string sequenceName);
}
public class SequentialNumber : AggregateRoot<Guid>, IMultiTenant
{
public virtual Guid? TenantId { get; protected set; }
public virtual string SequenceName { get; protected set; }
public virtual int CurrentValue { get; protected set; }
protected SequentialNumber()
{
}
public SequentialNumber([NotNull]string sequenceName, Guid? tenantId = null)
{
SequenceName = Check.NotNull(sequenceName, nameof(sequenceName));
TenantId = tenantId;
CurrentValue = 1;
ConcurrencyStamp = Guid.NewGuid().ToString();
}
public void Increment()
{
++CurrentValue;
}
}
do you want to open change details modal for your new entity?
did you check the docs if it helps https://docs.abp.io/en/commercial/latest/modules/audit-logging
@zony i think it's related with the Docs module on the free side so can you file an issue to https://github.com/abpframework/abp/issues
@690486439 yes you have an Enterprise License, but this is a bug in Suite. It's has been addressed and fixed. You'll see the "Add to project" button in the next version.
1- Are you using MVC or Angular? 2- Did you change your project directory? if yes, you need to remove the project from Suite and add again.
@andrew the release notes for the commercial side will be available in the next week, we'll announce it. When it's ready, it will be published in the document website https://docs.abp.io/en/commercial/latest
hi Sean, good to know it works! happy coding!
Update the ABP CLI:
dotnet tool update -g Volo.Abp.Cli
Update the ABP Suite:
abp suite update
did reinstalling fix the issue?
As of v2.7.0 you can override application logo easily without replacing the physical logo png files.
You can inject any service and create your own logic to set the logo.
[Dependency(ReplaceServices = true)]
public class BookStoreBrandingProvider : DefaultBrandingProvider
{
//You can inject services here...
private readonly ICurrentTenant _currentTenant;
public BookStoreBrandingProvider(ICurrentTenant currentTenant)
{
_currentTenant = currentTenant;
}
public override string AppName => "Acme - MyBookStore";
public override string LogoUrl
{
get
{
if (_currentTenant.Name == "MyCustomer")
{
return "http://mycustomer.com/logo.png";
}
if (_currentTenant.Id.HasValue)
{
return $"/images/logo/{_currentTenant.Id}";
}
return "/images/logo/my-default-app-logo.png";
}
}
public override string LogoReverseUrl => LogoUrl;
}