Skip to content

Commit

Permalink
bookstore upgraded to abp 0.21 (.net core 3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
yekalkan committed Sep 24, 2019
1 parent 132de6d commit 1b35606
Show file tree
Hide file tree
Showing 25 changed files with 2,504 additions and 335 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="0.18.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application.Contracts" Version="0.18.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Application.Contracts" Version="0.18.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application.Contracts" Version="0.18.1" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="0.21.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application.Contracts" Version="0.21.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Application.Contracts" Version="0.21.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application.Contracts" Version="0.21.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Acme.BookStore
{
public interface IBookAppService :
IAsyncCrudAppService< //Defines CRUD methods
ICrudAppService< //Defines CRUD methods
BookDto, //Used to show books
Guid, //Primary key of the book entity
PagedAndSortedResultRequestDto, //Used for paging/sorting on getting a list of books
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\common.props" />

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<RootNamespace>Acme.BookStore</RootNamespace>
</PropertyGroup>

Expand All @@ -13,10 +13,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Identity.Application" Version="0.18.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="0.18.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Application" Version="0.18.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="0.18.1" />
<PackageReference Include="Volo.Abp.Identity.Application" Version="0.21.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="0.21.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Application" Version="0.21.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="0.21.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Acme.BookStore
{
public class BookAppService :
AsyncCrudAppService<Book, BookDto, Guid, PagedAndSortedResultRequestDto,
CrudAppService<Book, BookDto, Guid, PagedAndSortedResultRequestDto,
CreateUpdateBookDto, CreateUpdateBookDto>,
IBookAppService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -19,14 +19,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.4" />
<PackageReference Include="Serilog.Extensions.Logging" Version="2.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="0.18.1" />
<PackageReference Include="Volo.Abp.Autofac" Version="0.21.0" />
<ProjectReference Include="..\Acme.BookStore.Application.Contracts\Acme.BookStore.Application.Contracts.csproj" />
<ProjectReference Include="..\Acme.BookStore.EntityFrameworkCore.DbMigrations\Acme.BookStore.EntityFrameworkCore.DbMigrations.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain.Shared" Version="0.18.1" />
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Shared" Version="0.21.0" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain.Shared" Version="0.21.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\common.props" />

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<RootNamespace>Acme.BookStore</RootNamespace>
</PropertyGroup>

Expand All @@ -13,15 +13,15 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" Version="2.2.0" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="0.18.1" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.IdentityServer" Version="0.18.1" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain" Version="0.18.1" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="0.21.0" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.IdentityServer" Version="0.21.0" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain" Version="0.21.0" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain" Version="0.21.0" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions samples/BookStore/src/Acme.BookStore.Domain/Book.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@ public class Book : AuditedAggregateRoot<Guid>
public DateTime PublishDate { get; set; }

public float Price { get; set; }

public Book(Guid id, string name, BookType type, DateTime publishDate, float price)
:base(id)
{
Name = name;
Type = type;
PublishDate = publishDate;
Price = price;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
<Import Project="..\..\common.props" />

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<RootNamespace>Acme.BookStore</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Acme.BookStore.EntityFrameworkCore\Acme.BookStore.EntityFrameworkCore.csproj" />
</ItemGroup>
Expand Down
Loading

0 comments on commit 1b35606

Please sign in to comment.