Advanced search for ASP.NET Core projects using EasyQuery templates

preview_player
Показать описание
OBSOLETE! Use the EasyQuery Getting Started tutorials instead:
This video can be applied only to the old versions of ASP.NET Core (1.1) and EasyQuery (4.x).
For the latest versions please read the instructions published here:

All process takes no more than 5 minutes.

STEP 1: Installing EasyQuery packages
Here are the Nuget packages you will need to install:
* Korzh.EasyQuery.AspNetCore
* Korzh.EasyQuery.EntitFrameworkCore.Relational
* Korzh.DbExport (optional - only for exporting results to CSV / Excel)

STEP 2: Installing EasyQuery templates
We prepared a template package which allows you to scaffold an "advanced search" page in your project quickly and easily.
To install that template package simply run the following console command from your project's folder:
dotnet new --install Korzh.EasyQuery.AspNetCoreTemplates::*

STEP 3: Scaffold an "advanced search" page using the installed package:

STEP 4: Two small modifications in your code:
1. Register EasyQuery services in the dependency injection container.
services.AddEasyQuery();

2. Reference your DbContext namespace in EasyQueryController
In the most cases, it will be something like:
using YourProjectName.Data;
or
using YourProjectName.Models;

That's it! Compile, run, open the new /EasyQuery page and enjoy the advanced search functionality in your web app.
Рекомендации по теме
join shbcf.ru