Quickstart
Before we go any further, let's we will do a quick tutorial on how to set up a basic project and
Project structure
Jerrycurl uses a project structure similar to that of ASP.NET, but defines the three central MVC components with a slightly different terminology:
- Relations (model layer) contain objects used to send data to and receive data from your database.
-
Commands are placed in the
Commands
folder and contain Razor SQL code that writes data to your database - Queries are placed
-
Commands and queries (view layer) contain the Razor SQL code in
.cssql
files in theCommands
andQuery
folders. data in your database layer. - Accessors (controller layer) presents your data access code to the outside world
Accessors\
CrudAccessor.cs
Commands\
Shared\
Create.cssql
Update.cssql
Delete.cssql
Queries\
Shared\
Get.cssql
MyDomain.cs
Database.orm
> Database.orm.cs