Models define what data can be persisted and manipulated by a Marten application. They explicitly specify fields and rules that map to database tables and columns.
Learn how to define models and interact with model records.
Learn how to query model records.
Learn how to define relationships in models.
Learn how to validate model records.
Learn how to define model callbacks.
Learn how to generate and work with model migrations.
Learn how to leverage database transactions.
📄️ Raw SQL
Learn how to perform raw SQL queries.
📄️ Multiple databases
Learn how to leverage multiple databases in a Marten project.