Base solution for your next web application

Activities of "thobiasxp"

Hi,

Thank you for your Valuable Reply....I will Check it and Inform...Thanks a lot

Here i include the phone book service class ...i followed the step by step development guide....but how after creating the interface and view model how the repository is injected kindly explain it detailed.

using Abp.Application.Services.Dto; using Abp.Domain.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TIBS.stem.Storage; using TIBS.stem.Tenants.Phonebook.Dto;

namespace TIBS.stem.Tenants.Phonebook { public class PersonAppService : stemAppServiceBase, IPersonAppService { private readonly IRepository<Person> _personRepository;

    public PersonAppService(IRepository&lt;Person&gt; personRepository)
    {
        _personRepository = personRepository;
    }

    public ListResultOutput&lt;PersonListDto&gt; 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&lt;PersonListDto&gt;(persons.MapTo&lt;List&lt;PersonListDto&gt;>());
    }
}

}

Followed the Module Zero Development Step by step guide..I was created the Persons Table using Code first....After Created table the Persons Repository is not injected.....I stuck up in that area...what i have to do for Getting Persons Repository...Make Reply As soon......

We Are Using Db First Migration in our Application..How To Configure Db First Migration in our Module Zero Project..Kindly Explain detailed how to configure the Db first Modal..

Showing 61 to 64 of 64 entries