Activités de "liangshiwei"

You can call the IUiPageProgressService in the class instead of page.

Hi,

Yes, at the moment, the UiPageProgress component has not been loaded yet

Hi

ABP is not supported in this case, you can try overriding the EntityHistoryHelper:

[Dependency(ReplaceServices = true)]
public class CustomEntityHistoryHelper : EntityHistoryHelper
{

    public CustomEntityHistoryHelper(IAuditingStore auditingStore, IOptions<AbpAuditingOptions> options, IClock clock, IJsonSerializer jsonSerializer, IAuditingHelper auditingHelper) : base(auditingStore, options, clock, jsonSerializer, auditingHelper)
    {
    }
    
    
    protected override List<EntityPropertyChangeInfo> GetPropertyChanges(EntityEntry entityEntry)
    {
        var propertyChanges = base.GetPropertyChanges(entityEntry);

        foreach (ReferenceEntry reference in entityEntry.References)
        {
            if (reference.TargetEntry == null)
            {
                continue;
            }

            var referencePropertyChanges = GetPropertyChanges(reference.TargetEntry);

            foreach (EntityPropertyChangeInfo referencePropertyChange in referencePropertyChanges)
            {
                referencePropertyChange.PropertyName = $"{reference.Metadata.Name}.{referencePropertyChange.PropertyName}";
            }

            propertyChanges.AddRange(referencePropertyChanges);
        }

        return propertyChanges;
    }
}

You are right.

I create an issue: https://github.com/abpframework/abp/issues/19823

Hi,

If the entity adds the identityUser navigation property, then need to change.

So, I think you need to change them all.

If the entity adds the identityUser navigation property, then need to change

Hi,

It should be IIdentityProDbContext

I looked at your project, and you want to add the IdentityUser navigation property, but your database context doesn't have an IdentityUser table.

You can refer to the standard application template configuration

You also need to add module dependencies to all module classes. (EntityframeworkModule, DomainModule, ApplicationModule etc....) For example:

You can upload to https://wetransfer.com/ and share the link via email.

how to share sample project.

You can share the simple project via email.

Affichage de 1 à 10 sur 4735 entrées
Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11