Skip to content

Commit cbf615e

Browse files
committed
Added city services.
1 parent 860693d commit cbf615e

File tree

12 files changed

+38
-35
lines changed

12 files changed

+38
-35
lines changed

AbpWithjTable/AbpjTable.Application/AbpjTable.Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<Compile Include="AbpjTableApplicationModule.cs" />
7272
<Compile Include="AbpjTableAppServiceBase.cs" />
7373
<Compile Include="Cities\CityAppService.cs" />
74-
<Compile Include="Cities\ComboboxItemDto.cs" />
74+
<Compile Include="Cities\Dto\ComboboxItemDto.cs" />
7575
<Compile Include="Cities\Dto\CityDto.cs" />
7676
<Compile Include="Cities\ICityAppService.cs" />
7777
<Compile Include="People\Dto\CreatePersonInput.cs" />

AbpWithjTable/AbpjTable.Application/Cities/CityAppService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Abp.Application.Services.Dto;
22
using Abp.Domain.Repositories;
3+
using AbpjTable.Cities.Dto;
34

45
namespace AbpjTable.Cities
56
{

AbpWithjTable/AbpjTable.Application/Cities/ComboboxItemDto.cs renamed to AbpWithjTable/AbpjTable.Application/Cities/Dto/ComboboxItemDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using Abp.Application.Services.Dto;
22

3-
namespace AbpjTable.Cities
3+
namespace AbpjTable.Cities.Dto
44
{
5-
public class ComboboxItemDto : IDto //TODO: Move to ABP!
5+
public class ComboboxItemDto : IDto //TODO: Move to ABP..?
66
{
77
public string Value { get; set; }
88

AbpWithjTable/AbpjTable.Application/Cities/ICityAppService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Abp.Application.Services;
22
using Abp.Application.Services.Dto;
3+
using AbpjTable.Cities.Dto;
34

45
namespace AbpjTable.Cities
56
{

AbpWithjTable/AbpjTable.Application/People/Dto/PersonDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PersonDto : EntityDto
1212
[Required]
1313
public virtual string Surname { get; set; }
1414

15-
public virtual string BirthCityName { get; set; }
15+
public virtual string BirthCityId { get; set; }
1616

1717
public virtual DateTime BirthDate { get; set; }
1818
}

AbpWithjTable/AbpjTable.Application/People/PersonAppService.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using Abp.Application.Services.Dto;
4+
using Abp.Domain.Repositories;
45
using AbpjTable.People.Dto;
56
using AutoMapper;
67

78
namespace AbpjTable.People
89
{
910
public class PersonAppService : AbpjTableAppServiceBase, IPersonAppService
1011
{
11-
private readonly IPersonRepository _personRepository;
12+
private readonly IRepository<Person> _personRepository;
1213

13-
public PersonAppService(IPersonRepository personRepository)
14+
public PersonAppService(IRepository<Person> personRepository)
1415
{
1516
_personRepository = personRepository;
1617
}
1718

1819
public PagedResultOutput<PersonDto> GetPeople(GetPeopleInput input)
1920
{
20-
var personListQuery = _personRepository.GetAllIncludingBirthCity();
21+
var personListQuery = _personRepository.GetAll();
2122

2223
var totalCount = personListQuery.Count();
2324
var personList = personListQuery.OrderBy(p => p.Name)

AbpWithjTable/AbpjTable.Core/AbpjTable.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
<Compile Include="AbpjTableConsts.cs" />
6464
<Compile Include="AbpjTableCoreModule.cs" />
6565
<Compile Include="Cities\City.cs" />
66-
<Compile Include="People\IPersonRepository.cs" />
6766
<Compile Include="People\Person.cs" />
6867
<Compile Include="Properties\AssemblyInfo.cs" />
6968
</ItemGroup>

AbpWithjTable/AbpjTable.Core/People/IPersonRepository.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

AbpWithjTable/AbpjTable.EntityFramework/AbpjTable.EntityFramework.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
<ItemGroup>
7878
<Compile Include="EntityFramework\AbpjTableDbContext.cs" />
7979
<Compile Include="EntityFramework\Repositories\AbpjTableRepositoryBase.cs" />
80-
<Compile Include="EntityFramework\Repositories\PersonRepository.cs" />
8180
<Compile Include="Migrations\201410241939445_InitialCreate.cs" />
8281
<Compile Include="Migrations\201410241939445_InitialCreate.Designer.cs">
8382
<DependentUpon>201410241939445_InitialCreate.cs</DependentUpon>

AbpWithjTable/AbpjTable.EntityFramework/EntityFramework/Repositories/PersonRepository.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)