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 validate model records.
Learn how to define model callbacks.
Learn how to leverage database transactions.
Learn how to generate and work with model migrations.
📄️ Multiple databases
Learn how to leverage multiple databases in a Marten project.