Getting Started with .NET Document Databases Using Marten 1
Marten is a document database library for the easy storing, updating, and querying of .NET objects. It provides an easy way for you to persist data without the added complexities of object relational mapper tools.
What you'll learn
Marten is an open source library for .NET that enables the use of an underlying PostgreSQL database as a document database. Marten can be used as a replacement or alternative to other document databases such as MongoDb or RavenDb and can also be an alternative to ORMs such as Entity Framework. In this course, Getting Started with .NET Document Databases Using Marten 1, you'll learn how the open-source Marten library allows you to use the PostgreSQL database as a document database in which to persist your .NET objects. First, you'll explore the fundamentals of how Marten works. Next, you'll discover how to store .NET entities as documents and how to update and delete documents. Finally, you'll learn the various ways to query the data from your .NET application. By the end of this course, you'll understand how to use Marten to store objects as documents and how to retrieve, modify, and delete them from C# code.
Table of contents
- Overview 3m
- Query and Document Sessions 2m
- Understanding DocumentSession Types 5m
- DocumentSession Change Tracking Modes 3m
- Document Identity 3m
- Storing New Documents 6m
- Loading Existing Documents 2m
- Updating Document Data 2m
- Deleting Documents 2m
- Additional Methods and Overloads 4m
- Defining a Foreign Key Constraint 4m
- Inserting Foreign Key Constrained Data 6m
- Configuring Automatic Schema Changes 3m
- Summary 2m
- Overview 2m
- Querying Overview 3m
- Querying Documents with the Where Operator 7m
- Querying with Null Values 3m
- Querying with String Values 2m
- Returning a Single Document 4m
- Retrieving All Documents 1m
- Other Supported LINQ Operators 2m
- Reducing Database Round Trips 2m
- Querying with PostgreSQL SQL 3m
- Summary 2m