- ASP.NET Core
- Entity Framework Core
- Both Sql Server and Sql lite databases are supported (Check installation instrcutions for more details)
- .Net core sdk
- Either VSCode with C# extension OR Visual studio 2017
**Make sure you have Node version >= latest LTS and NPM >= latest LTS
1. Clone the repo
git clone https://github.com/Liang-Zhinian/CqrsFrameworkDotNet.git
2. Change directory
cd CqrsFrameworkDotNet
3. dotnet restore
4. Point to Sqllite or SqlServer
This project supports both sql server and sql lite databases
* Run with Sqlite:
* Project is configured to run with sqlite by default and there is an 'Initial' migration already added (see Migrations folder)
* After changing you models, you can add additional migrations
[see docs](https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet)
* Run with SqlServer:
* To run under sql server:
* npm run clean
* Delete `Migrations` folder
* Flip the switch in appsettings.json called `useSqLite` to `false`, this should point to use local sql server setup as default instance. (See appsettings.json file for connection string)
* Run `dotnet ef migrations add "InitialMigrationName"`