These are Code Nanites that generate code related to Database tables.
This will generate model classes for tables in your Schema. This is what setting up this Code Nanite looks like: using System; using System.Collections.Generic; namespace MyProject.Models { public partial class Course: Audit ...
This will generate a DBcontext file as well as separate Fluent configuration files This is what setting up this Code Nanite looks like: using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; n ...
The generated dbcontext will look like this: public DbSet<Album> Albums { get; set; } public DbSet<Artist> Artists { get; set; } public DbSet<Customer> Customers { get; set; } public DbSet<Employee> Employees { get; set ...
Assuming you create a node with the label - [%CS_TABLE_LISTS%].cs as shown below: And then add the [%CURRENT_TABLES%] code nanite as the code: When the code is generated, each file will output the name of the table currently being pr ...
Assuming you create a node with the label - [%TABLE_LIST%].cs as shown below: And then add the [%HORIZ_COLUMNS%] Code Nanite in the code editor: When the code is generated, each file will output the columns in the table currently being processed, se ...
Expansion Label: CS_CURRENT_TABLE Dependency: CS_TABLE_LIST Description: Returns a string representing the current table accessed by a prior call to [%CS_TABLE_LIST%] Assuming you create a node with the label - [%CS_TABLE_LIST ...
This is applicable at the folder/file level as well as the code level. Folder Level: When you use the expansion label - [%CS_TABLE_LIST%] as the label for a Node, you can generate folders having the name of the table(s) as you cycle through the list. For ...
This is applicable at the folder/file level as well as the code level. Folder Level: When you use the expansion label - [%CS_TABLE_LISTS%] as the label for a Node, you can generate folders having the name of the table(s) as you cycle through the li ...