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

Activities of "maddey234"

I added a mapping to the CustomDtoMapper class and started getting the error below: Failed to Emit module:'xxxx.Application'

A sample of the mapping I added to the CustomDtoMapping class was:

Mapper.CreateMap<CreateLoanRequestInput, LoanRequest>()
         .ForMember(dest => dest.RepaymentCycle, opts => opts.MapFrom(src => (RepaymentCycle)src.RepaymentCycle))
         .ForMember(dest => dest.LoanApplicationStatus, opts => opts.UseValue(LoanApplicationStatus.Pending ))
         .ForMember(dest => dest.DisbursementType, opts => opts.MapFrom(src => (DisbursementType)src.DisbursementType));

Please help me.

My user name is mddey234

Please grant me access to the Github account to download the code.

Question

Hello,

I am trying to fetch a list of accounts from an accounts table and I keep getting the error that "The operation cannot be completed because the DbContext has been disposed."

I have followed exactly the example in this article"http://aspnetzero.com/Documents/Developing-Step-By-Step-MPA"

This is where I get the error:

public class PersonAppService : PhoneBookAppServiceBase, IPersonAppService
{
    private readonly IRepository<Person> _personRepository;

    public PersonAppService(IRepository<Person> personRepository)
    {
        _personRepository = personRepository;
    }

    public ListResultOutput<PersonListDto> GetPeople(GetPeopleInput input)
    {
        var persons = _personRepository
            .GetAll()
            .WhereIf(
                !input.Filter.IsNullOrEmpty(),
                p => p.Name.Contains(input.Filter) ||
                        p.Surname.Contains(input.Filter) ||
                        p.EmailAddress.Contains(input.Filter)
            )
            .OrderBy(p => p.Name)
            .ThenBy(p => p.Surname)
            .ToList();

        return new ListResultOutput<PersonListDto>(persons.MapTo<List<PersonListDto>>());
    }
}

while mine is like this:

public class AccountAppService : MyCooperatifAppServiceBase, IAccountAppService
    {

        private readonly IRepository<Account> _accountRepository;

        public AccountAppService(IRepository<Account> accountRepository)
        {
            _accountRepository = accountRepository ;
        }


        public ListResultOutput<AccountListDto> GetAccounts(GetAccountsInput input)
        {
                    
            var accounts =  _accountRepository
                .GetAll()
                .WhereIf(
               !string.IsNullOrWhiteSpace(input.Filter),
                    a => a.Name.Contains(input.Filter) 
                )
                .OrderBy(a => a.Id)
                .ThenBy(a => a.Name)
                .ToList();

            return new ListResultOutput<AccountListDto>(accounts.MapTo<List<AccountListDto>>());
        }
    }
}

My AccountListDto does not contain any foregin keys whatsoever, so I don't know why I keep getting that error. Please help

Hello All,

I just downloaded a template (i.e. Multi-page web application + entity framework + module zero) from the website but when I perform the initial build, I get 110 errors and one of them includes that "The type or namespace name 'Abp' not found (are you missing a directive or a an assembly reference?)".

What do I do to clear the exceptions, I have downloaded all the references and missing assembly?

I am trying to create a new application that relate to staffs and the staff id is unique. This is what I wanted to use as the primary key initially. Is there another way I can go about it.thanks.

So is there a way to work around it

Hello team.

I just downloaded the asp net plus module zero start up application for my own project. I have added my additional properties into the user class which inherited from abpuser but my primary key is a string not a long. Please how do I override the primary key?

Showing 11 to 17 of 17 entries