![]() ![]() In this section, you will create an application service to get, create, update and delete books using the `CrudAppService` base class of the ABP Framework. * `` contains the implementations of your application services. * `` contains your (./Data-Transfer-Objects.md)s and (./Application-Services.md) interfaces. The application layer is separated into two projects: `.DbMigrator` is a console application that can be run to **migrate the database schema** and **seed the data** on **development** and **production** environments. !(images/bookstore-dbmigrator-on-solution.png) Run the `` application to update the database: If (await _bookRepository.GetCountAsync() ` (the default (./Repositories.md)) to insert two books to the database in case there weren't any books in it. Public async Task SeedAsync(DataSeedContext context) Public BookStoreDataSeederContributor(IRepository bookRepository) Private readonly IRepository _bookRepository : IDataSeedContributor, ITransientDependency Public class BookStoreDataSeederContributor You can skip this section if you don't want to create the data seeding, but it is suggested to follow along and learn this useful ABP Framework feature.Ĭreate a class deriving from the `IDataSeedContributor` in the `*.Domain` project by copying the following code: This section introduces the (./Data-Seeding.md) system of the ABP framework. ![]() > It's good to have some initial data in the database before running the application. * ** is the startup project and `` is the *Default Project* in PMC. It is developed using the following technologies: This application is used to manage a list of books and their authors. In this tutorial series, you will build an ABP based web application named `Acme.BookStore`. ![]() # Web Application Development Tutorial - Part 1: Creating the Server Side ![]()
0 Comments
Leave a Reply. |