Hi,
It's Worked...Thank You So Much......
Hi
Waiting for your valuable reply....I need to change the EMail Configuration....Reply ASAP.
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,
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
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,
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<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>>());
}
}
}