Base solution for your next web application

Activities of "sparkyjr"

Hi ismcagdas,

ABP packages version is 0.8.3.0

Could you please tell us how to disable SignalR?

Thanks, SparkyJr

Thanks @aaron..

Here is what I see browser console when I log in to my application

[attachment=1:3r5p5rxb]console.png[/attachment:3r5p5rxb]

And this is what I see in the network tab.

[attachment=0:3r5p5rxb]network_tab.png[/attachment:3r5p5rxb]

Yes I am using EF 6.0.

The following is my code snippet: I am setting LazyLoadingEnabled to false in DbContext.

public ABXDbContext()
            : base("Default")
        {
            Configuration.LazyLoadingEnabled = false;
        }

        public ABXDbContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
            Configuration.LazyLoadingEnabled = false;
        }

Here are my entities with virtual removed:

public class CascadeLevel : FullAuditedEntity, IMustHaveTenant
    {
        [Required]
        public int TenantId { get; set; }
        [Required]
        [MaxLength(100)]
        public string Name { get; set; }
        [Required]
        public int Level { get; set; }
        public ICollection<CascadeLevelType> CascadeLevelTypes { get; set; }
    }

public class CascadeLevelType : FullAuditedEntity, IMustHaveTenant
    {
        [Required]
        public int TenantId { get; set; }
        [Required]
        public int CascadeLevelId { get; set; }
        public CascadeLevel CascadeLevelData { get; set; }
        [Required]
        [MaxLength(100)]
        public string Name { get; set; }
        [MaxLength(500)]
        public string Description { get; set; }
        public string IconClass { get; set; }
        public string AssociationId { get; set; }   //Gaurav(1)
        public ICollection<CascadeLevelTypeLabelValueRelation> CascadeLevelTypeLabelValueRelations { get; set; }
        public ICollection<CascadeLevelTypeKPIRelation> CascadeLevelTypeKPIRelations { get; set; }
        public ICollection<Initiative> Initiatives { get; set; }
    }


private readonly IRepository<CascadeLevel> _cascadeLevelRepository;
private readonly IRepository<CascadeLevelType> _cascadeLevelTypeRepository;

 public async Task<GetCascadeLevelsDto> GetAllCascadeLevels()
        {
            GetCascadeLevelsDto cascadeLevelsDto = new GetCascadeLevelsDto();
            var allCascadeLevels = await _cascadeLevelRepository.GetAllListAsync();
            var allCascadeLevelTypes = await _cascadeLevelTypeRepository.GetAllListAsync();

Hi Aaron,

My mistake! Apologies, it was a typo from my side! I have corrected my question.

I will take a look at links you have shared, and get back to you if it's needed.

Thanks, SparkyJr

Thanks Alper!

We will apply this attribute on the controller actions then:

[UnitOfWork(isTransactional: false)]

Regards, SparkyJr

Hi Alper,

We login as one tenant user. Then, we are accessing controller action, which calls app service method for creating some items, then access a list of same items, and then access a dashboard, which has many other items.

So, in short, 15 concurrent users create, and fetch items from the DB.

Does that answer your question?

Regards, SparkyJr

Thanks Alper for your reply!

So, in short, we need to disable unit of work for the entire flow, right? Like from controller action to the app service methods, right?

Are there any known issues if we disable unit of work?

Regards, SparkyJr

We are using Abp Version=0.8.3.0

Hi ismcagdas,

Thanks for you reply!

I will be trying out what you guys have suggested, and will get back to you in case I need any help.

Regrads, SparkyJr

Showing 1 to 10 of 39 entries