Base solution for your next web application

Activities of "thobiasxp"

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..

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......

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;>());
    }
}

}

Hi,

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

Hi

Actually I am getting an error in the following Bold area.I got an error in person app service GETPEOPLE method... WHERE AND FILTER condition....

in that area i got an following error

'System.Linq.IQueryable<TIBS.stem.Storage.Person>' does not contain a definition for 'WhereIf' and no extension method 'WhereIf' accepting a first argument of type 'System.Linq.IQueryable<TIBS.stem.Storage.Person>' could be found (are you missing a using directive or an assembly reference?)

but i properly created the entity class also mentioned the class in dbcontext....

also added the person app service code for your reference......

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<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>>()); } } }

Hi,

It's Worked. Thanks a lot...I have a doubt how to map the service class in angular js...

ex: '$scope', 'abp.services.app.person'

where the abp.services.app.person service class is created.....how to map this to Angular js controller.....explain it detailed

Question

Hi,

I need to configure "Db First Migration" in Module Zero Project. How can i Convert the "Code First to Db First Migration"...kindly explain it detailed....And guide me what are steps need to follow....

Thanks

Hi,

How to change the Db Migration.....Still i'm not get any Solutions.....need a detailed explanation for change the Code First Migration to Db First Migration.....Make a reply as soon as Possible.

Thanks

Hi

I want to change the Default Email Configuration Setting in Module Zero Project....How can i change it.....where the Email configuration setting are mentiond.Reply ASAP.

Thanks & Regards Mugesh.R

Hi

Waiting for your valuable reply....I need to change the EMail Configuration....Reply ASAP.

Thanks

Showing 1 to 10 of 64 entries