Data & Persistence

Guides for working with data models, database operations, and persistence in LightNap.

Available Guides

Backend Seeding

Understand how LightNap’s automatic seeding system works on application startup, including support for environment-specific seeders.

Adding Entities

Learn how to add new database entities using Entity Framework, including creating entity classes, updating the DbContext, and generating migrations.

Adding Profile Fields

Extend the user profile with custom fields. This comprehensive example covers the full stack from backend entities to frontend forms.

Scaffolding From an Entity

Use the scaffolding tool to automatically generate boilerplate code for CRUD operations, including backend services, API controllers, and Angular components.


Table of contents