Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "BobIngham"

Answer

Aaron, Perfect, thanks.

@ismcagdas, understood, I will fork and send you a request as and when. Thanks.

@alper, nice, thanks. Why don't you guys invite your user base to write articles under a guest account that you could create for £5 per month? That way we could submit articles of interest for the Zero user base and share code and you guys could edit and manage publishing. For example I am about to cut into code for audit logs, system logs and entity history and override standard services replacing them with new services which will persist entries to Mongodb using an Azure Cosmodb wrapper service. I would gladly share my work especially if I knew my article would be reviewed by you guys, the experts. This would have the added advantage of you reviewing my code and suggesting changes where appropriate. I am not a great programmer and sometime find Zero frustrating to work with simply because it is an advanced body of work using concepts and patterns which are way beyond my limited capabilities. Just a thought, let me know if I can help.

@alper, yeah, I kind of thought that would be the case. I will think on it for a while. Nice entry in the wiki for AbpSession by the way. keep it up. Volosoft should really implement a Medium account for us to submit things like this to.

Answer

That's taken me one step backwards, now there are no entity history records at all. I think the only thing to do here is for me to build a base Zero aspnet-core project and import a text file using this code, fired from Hangfire and then we can take a look again. At the moment I get the feeling we are applying hacks and not knowing why it is not working. For example, why would the .Current in _unitOfWorkManager.Current.SaveChanges(); return null?

Answer

_unitOfWorkManager.Current.SaveChanges() throws a null error on .Current. I am kind of tearing my hair out with this one but entity history does not form a part of what I need to move the system to trial next week. I will put this on one side and come back to it. In the meantime I have attached my DataProvider class, the method "UpdateFromDataProvider" is called direct from Hangfire from the following worker class:

using Abp.BackgroundJobs;
using Abp.Configuration;
using Abp.Dependency;
using Abp.Domain.Repositories;
using Nuagecare.App.Services;
using Nuagecare.MultiTenancy;
using System.Linq;

namespace Nuagecare.Web.Hangfire.Workers
{
    public class UpdateFromDataProvider : BackgroundJob<int>, ITransientDependency
    {
        private readonly ITenantAppService _tenantService;
        private readonly IRepository<Tenant> _tenantRepository;
        private readonly SettingManager _settingManager;
        private readonly DataProviderAPIProvider _dataProviderAPIProvider;

        public UpdateFromDataProvider(
            ITenantAppService tenantService,
            IRepository<Tenant> tenantRepository,
            SettingManager settingManager,
            DataProviderAPIProvider dataProviderAPIProvider)
        {
            _tenantService = tenantService;
            _tenantRepository = tenantRepository;
            _settingManager = settingManager;
            _dataProviderAPIProvider = dataProviderAPIProvider;
        }

        public override void Execute(int number)
        {
            var tenants = _tenantRepository.GetAllList()
                .Where(t => t.IsActive == true);

            foreach (var tenant in tenants)
            {
                _dataProviderAPIProvider.UpdateFromDataProvider(tenant.Id);
            }
            return;
        }
    }
}

I am hoping you can throw some light on why I am getting a row in each of AbpEntityChangeSets and AbpEntityChanges but nothing in AbpEntityPropertyChanges.

Cheers, Bob

[attachment=0:3cw44pfw]DataProviderAPIProvider.zip[/attachment:3cw44pfw] DataProviderAPIProvider.zip

Hi Aaron, I confess to not having tried that. I am working on other stuff right now and because this is not critical I will come back to you after I finish my planned release and get back to you. Thanks for your help so far.

Hi Aaron, this is traight from 5.4.1 download:

namespace Nuagecare.Tests
{
    [DependsOn(
        typeof(NuagecareApplicationModule),
        typeof(NuagecareEntityFrameworkCoreModule),
        typeof(AbpTestBaseModule))]
    public class NuagecareTestModule : AbpModule
    {

Hi Aaaron, Thanks for the help. From debugging:

at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)\r\n   at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments)\r\n   at Castle.Windsor.WindsorContainer.Resolve[T]()\r\n   at Abp.Dependency.IocManager.Resolve[T]()\r\n   at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver)\r\n   at Nuagecare.Migrations.Seed.Host.App.DefaultOrganizationUnitCreator.Create()\r\n   at Nuagecare.Migrations.Seed.Host.InitialHostDbBuilder.Create()\r\n   at Nuagecare.Migrations.Seed.SeedHelper.SeedHostDb(NuagecareDbContext context)\r\n   at Nuagecare.Migrations.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action`1 contextAction)\r\n   at Nuagecare.Migrations.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver)\r\n   at Nuagecare.EntityFrameworkCore.NuagecareEntityFrameworkCoreModule.PostInitialize()\r\n   at Abp.Modules.AbpModuleManager.&lt;&gt;c.&lt;StartModules&gt;b__15_2(AbpModuleInfo module)\r\n   at System.Collections.Generic.List`1.ForEach(Action`1 action)\r\n   at Abp.Modules.AbpModuleManager.StartModules()\r\n   at Abp.AbpBootstrapper.Initialize()

From the test explorer: [attachment=0:1d49vu01]TestProblem.PNG[/attachment:1d49vu01] Again, thanks for your help.

Answer

@alper, thanks for that, I can live with null values in the AbpEntityChangeSets.BrowserInfo, ClientIpAddress and ClientName columns. But it still doesn't answer why I have no persistence in the AbpEntityPropertyChanges table. @aaron - any ideas how to address this?

Showing 381 to 390 of 477 entries