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

Activities of "arslanali"

hi there, I know its a very basic question, however your help will be appreciated following is my code

[UnitOfWork]
public async Task<string> GetPictureById(Guid? Id, int fWidth, int fHeight)
{            
    using (CurrentUnitOfWork.SetTenantId(null))
    {
        if (Id.HasValue)
        {
            var file =await _binaryObjectManager.GetOrNullAsync(Id.Value);
            var filename = ImageResizer(file.Bytes, fWidth, fHeight, Id.Value);
            return filename;                    
        }
        else
        {
            return null;
        }
    }
            
}

Its in my MVC Controller Class. I even put [UnitOfWork] annotation on my method.

the code is breaking with null reference at using statement. I tried with UnitOfWorkManager.Current and even with _unitOfWorkManager.Current by dependency injection. though I know that by default it is available in controllers.

Hi there, I want to create a public interface of the application where the public users (customers) can come and put up their inquiries. There will be different tenants (suppliers), and their users will be catering the public inquires. I want a little help here in customizing the abp and aspnetzero architecture.

Step1: How can i create an entity for public users. should i create it as host user and handle the default permissions? If so then i will have to allow creation of self host accounts, which is again an issue. should i create a default tenant and create all public users as users to this tenant and create different features or edition etc?

Step2: Can you share some common steps to convert the landing page area into a small Angular App so that public users can view their history related data. I want to utilize the Abp service injection to get and set data into db for public users.

Question

Hi, Can you please tell me how to upload an images and displayed them as a gallery !

Question

hi there, can you please tell us know the exact release dates for the Roadmap Features, especially the Angular 2 upgrade and the email+chat features.

regards,

When i try to make an application service object like below, i dont get intellisense:

var _profileService = abp.services.app.profile;

when i type abp. i get everything but the services. Please tell me which files to include in my js references file?

How can i build a repository container so that i dont have to inject each and every custom repository using constructor injections in controller or application service layers. following is my plan:

public interface ISupplierRepository 
    {
        ISupplierProfileRepository _supplierProfileRepository { get; }
        ISupplierBusnsServicesRepository _supplierBusnsServiceRepository { get; }
        ISupplierBusnsCoverageRepository _supplierBusnsCoverageRepository { get; }
        ISupplierPhotosRepository _supplierPhotosRepository { get; }
        ISupplierVideosRepository _supplierVideosRepository { get; }
        ISupplierLeadsRepository _supplierLeadsRepository { get; }
        ISupplierCertificationsRepository _supplierCertificationsRpository { get; }

    }

but currently i am getting an unsatisfied dependency injection error on ISupplierRepository as i havnt implemented this interface using RepositoryBase. because RepositoryBase can only implement using a specific domain type.

Hey there ! i need your help to figure me out that how the different scripts will work on my page . following is the procedure i followed to bundle my scripts Script Path=> define the variable with its link =>Include in BundleConfig .. but my scripts are not loading the thing which i want is on the image i have attached

I am getting above error as soon i am accessing the repository to get records in the SetSupplier() method. I am using IRepository<SupplierProfile> supplierRepository as constructor injection in my SupplierAppService Class. review code below: (My SupplierProfile Entity is having a one-one relationship with the Tenant, and it is also implementing IMusthaveTenant, Please guide if i can avoid the Where clause from my query as IMustHaveTenant should implement it. )

class SupplierAppServices: FixonClickAppServiceBase, ISupplierAppServices
    {
       
        private readonly IRepository<SupplierProfile> _supplierRepository;
        private SupplierProfile _supplierProfile;
        
        public SupplierAppServices(IRepository<SupplierProfile> supplierRepository)
        {
            _supplierRepository = supplierRepository;
            SetSupplier();
        }
        private void SetSupplier()
        {
            _supplierProfile = _supplierRepository.GetAll().Where(t=>t.TenantId==AbpSession.TenantId).FirstOrDefault();
        }
Showing 1 to 8 of 8 entries