liveBook · Manning

Fluent interface

A fluent interface is an API design style in which operations return objects or values that enable readable chaining of subsequent calls.

How 4 Manning books explain it

Building Web APIs with ASP.NET Core

The Entity Framework Core Fluent API is a programmatic configuration interface that defines entity mappings and relationships through chained method calls.

How it is used
Configures EF Core entity mappings and relationships in DbContext for a board-game database.
How deep it goes
Works through composite-key and relationship method chains, then leaves additional one-to-many and many-to-many configurations as exercises.
Examples
Uses board-game junction entities for composite keys and exercises involving publishers and categories.
What you can do after
Build it from scratch in EF Core by configuring composite keys, foreign keys, required relationships, and cascade deletion in OnModelCreating.

Read how Building Web APIs with ASP.NET Core explains fluent interface →

Kafka Streams in Action, Second Edition

A fluent interface is an API design pattern in which methods return objects that allow successive operations to be chained in a readable expression.

How it is used
Builds concise Kafka Streams topologies by chaining source, transformation, and sink operations.
How deep it goes
Explains returned stream objects and demonstrates a complete chain, but does not descend into API internals.
Examples
Uses the Yelling app to uppercase records flowing from src-topic into out-topic.
What you can do after
Builds Kafka Streams topologies from source to sink using chained Java API calls.

Read how Kafka Streams in Action, Second Edition explains fluent interface →

Idiomatic Rust

A fluent interface is an API style in which chained method calls express a sequence of operations through return values designed for further chaining.

How it is used
Uses method chaining to make sequential operations and builder configuration concise.
How deep it goes
Explains return types, Iterator::map, consuming self, struct spread, and fluent builder construction, but does not develop broader alternatives.
Examples
Demonstrates Iterator::map and a Bicycle builder configured with make, model, size, color, and build.
What you can do after
Apply it via Rust methods that return a chainable type, including consuming builder methods and a terminating build operation.

Read how Idiomatic Rust explains fluent interface →

ASP.NET Core in Action, 3e

A fluent API is a chainable programming interface that configures entity mappings through method calls rather than declarative attributes.

How it is used
Configures entity mappings, application options, and validation rules through readable method chains.
How deep it goes
Defines chaining, demonstrates validation and reusable extensions, and stops short of explaining fluent-interface implementation internals.
Examples
Uses currency conversion validators, allowed currency codes, cross-property checks, EF Core mappings, and OptionsBuilder<T> configuration.
What you can do after
Apply it via FluentValidation to compose property rules, custom predicates, reusable extensions, and dependency-backed checks.

Read how ASP.NET Core in Action, 3e explains fluent interface →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.