A Visual Studio 2015 project which shows how to perform the create, read, update and delete operations in the ASP.NET Core application using generic repository pattern with Entity Framework Core Code First approach.
The code illustrates the following topics:
To build and run this sample as-is, you must have Visual Studio 2015 installed. In most cases you can run the application by following these steps:
To run the sample, hit F5 or choose the Debug | Start Debugging menu command. You will see the author list screen. From this screen you have author listing screen as shown in below figure.
Figure 1: Author listing
Now click on “Add Author” button to add new author in the application as per following screen.
Figure2: Add Author
As per figure 1, Edit button uses to edit individual author as per following figure.
Figure 3: Edit Author
As per figure 1, Book button uses to add new with respect an author as per following figure.
Figure 4: Add New Book
Now click on Book menu from the top and shows book listing screen as per following screen.
Figure 5: Book Listing
As per figure 5, Edit button uses to edit individual book as per following figure.
Figure 6: Edit Book
As per figure 5, Delete button uses to delete individual book as per following figure.
Figure 7: Delete Book
Most of folders play same role as in MVC application but there are following more folder and files.