- Cover
- Title Page
- Preface
- How to Read This Book
- Table of Contents
- Part I — Foundations
- Chapter 1 — Why Configuration Classes Matter
- Chapter 2 — The Clean DbContext
- Chapter 3 — Enterprise EF Core Mapping Conventions
- Chapter 4 — Folder Structure by Schema
- Chapter 5 — ReactorFleet.Unit Configuration Walkthrough
- Bridge Chapter — Entity Framework Core Code-First Reminder
- What Code First Means
- Entity Classes and Configuration Classes
- DbContext and DbSet
- Fluent API vs Data Annotations
- Migrations, Defaults, Indexes, and Relationships
- ApplyConfigurationsFromAssembly
- Part II — EF Core Configuration Atlas
- Chapter 6 — CorePlatform Configurations
- Chapter 7 — Security Configurations
- Chapter 8 — Organization Configurations
- Chapter 9 — ReactorFleet Configurations
- Chapter 10 — Instrumentation Configurations
- Chapter 11 — DigitalTwin Configurations
- Chapter 12 — AlarmManagement Configurations
- Chapter 13 — EventManagement Configurations
- Chapter 14 — Maintenance Configurations
- Chapter 15 — RootCause Configurations
- Chapter 16 — ReinforcementLearning Configurations
- Chapter 17 — Robotics Configurations
- Chapter 18 — RadiationMonitoring Configurations
- Chapter 19 — EmergencyPreparedness Configurations
- Chapter 20 — Compliance Configurations
- Chapter 21 — Reporting Configurations
- Chapter 22 — Audit Configurations
- Epilogue — From Entity to Context
- Back Matter
- References
- Index of Entity Classes
- Index of Configuration Classes
- Index of Lookup Configurations
- Index of Foreign-Key Mappings
- Index of Database Indexes
FROM ENTITY TO CONTEXT
One entity. One mapping. Clean context. From Entity to Context shows how to organize enterprise EF Core Code First projects with configuration classes, Fluent API, migrations, indexes, relationships, and a clean DbContext across the NEXUS-1 digital-twin schema.
Minimum price
$49.99
$59.99
You pay
Author earns
About
About the Book
About the Book
What does an enterprise EF Core model look like when the DbContext stops being a dumping ground and every entity gets its own professional configuration file?
From Entity to Context is the EF Core configuration companion to the NEXUS-1 schema atlas. It takes the database backbone defined in From Schema to System and shows how that structure can be mapped cleanly into C# using Entity Framework Core, Fluent API, configuration classes, migrations, indexes, relationships, defaults, constraints, and schema-aware folder organization.
This is not a general EF Core tutorial. It is a practical configuration atlas for a large industrial digital-twin platform. The focus is Code First, but not Code First as a toy example. The book shows how Code First can be organized in an enterprise-level project where the model is too large to live inside one OnModelCreating method.
The central idea is simple:
One entity should have one clear mapping, and the context should remain clean.
Instead of filling the DbContext with hundreds or thousands of mapping lines, each entity receives its own IEntityTypeConfiguration<T> class. Keys, table names, schema names, indexes, precision, default values, relationships, delete behavior, row versions, lookup-table conventions, and foreign-key names are placed where they belong: beside the entity they configure.
The result is a model that a programmer can navigate, review, test, migrate, and maintain.
What This Book Contains
The book contains the complete EF Core configuration atlas for the NEXUS-1 companion system.
It includes:
- EF Core Code First reminder chapter
- clean
DbContextpattern ApplyConfigurationsFromAssembly- schema-based folder structure
- configuration classes using
IEntityTypeConfiguration<T> - Fluent API mapping examples
- table and schema naming conventions
- primary-key configuration
- alternate keys and unique indexes
- required and optional properties
- SQL Server default values
DATETIME2, decimal precision, and string-length conventions- row-version and concurrency patterns
- lookup-table configuration patterns
- cross-schema foreign-key mapping
- migration and verification notes
- configuration indexes for the full atlas
The schema sectors covered are:
- CorePlatform
- Security
- Organization
- ReactorFleet
- Instrumentation
- DigitalTwin
- AlarmManagement
- EventManagement
- Maintenance
- RootCause
- ReinforcementLearning
- Robotics
- RadiationMonitoring
- EmergencyPreparedness
- Compliance
- Reporting
- Audit
Together, these chapters show how the full NEXUS-1 data model can be represented in EF Core without losing structure, naming discipline, or database clarity.
Why This Book Exists
From Schema to System answered one question:
If the NEXUS-1 digital twin lived in one coherent SQL Server database, what would that database look like?
From Entity to Context answers the next question:
If that database is mapped professionally in a .NET application, what should the EF Core configuration layer look like?
The answer is not one giant DbContext.
It is not a pile of attributes scattered across entity classes.
It is not a migration file nobody understands.
The answer is a configuration atlas: one entity, one configuration file, one clear place where the database contract is expressed in C#.
Who This Book Is For
This book is written for:
- .NET developers
- EF Core developers
- backend engineers
- software architects
- database-aware C# programmers
- developers working on large enterprise systems
- readers of the NEXUS-1 series who want the C# mapping layer behind the schema
You do not need nuclear-industry experience to read it. The nuclear digital-twin setting is the reference system, not the prerequisite. The real subject is enterprise EF Core organization for large, schema-rich applications.
If you have ever opened a project where OnModelCreating became unreadable, where indexes had random generated names, where relationship configuration was scattered, or where nobody knew which class truly owned the database mapping, this book is for you.
What Makes It Different
Most EF Core examples are intentionally small. They show a few entities, a simple DbContext, and perhaps one or two Fluent API rules. That is useful for learning the basics, but it does not show what happens when the model grows into dozens or hundreds of tables across multiple bounded contexts.
This book starts where small examples stop.
It shows:
- how to keep
DbContextclean in a large project - how to organize configuration files by schema
- how to use Fluent API as the database contract
- how to give indexes and constraints stable professional names
- how to map lookup tables consistently
- how to configure cross-schema relationships
- how to keep Code First readable at scale
- how to prepare migrations that a real team can review
- how to make EF Core serve the database model instead of hiding it
The result is not only EF Core code. It is a way of keeping a large C# data model honest.
Honest Boundary
NEXUS-1 is a Phase-0 demonstration and educational companion system. The EF Core mappings in this book are serious software-architecture material, but they are not certified nuclear software, not a licensed plant data model, not safety-class implementation guidance, and not connected to any real facility.
The purpose of this book is to show how a complex digital-twin schema can be mapped professionally in EF Core using Code First discipline, configuration classes, clear naming, and explicit relationships.
It is a configuration atlas, not an operating manual.
In One Sentence
From Entity to Context is the complete EF Core configuration atlas for the NEXUS-1 digital-twin platform: one entity, one mapping, clean context.
Author: Grigorios Kyriakos Agathangelidis
Greek name: Γρηγόριος Κυριάκος Αγαθαγγελίδης
Also searchable as: Αγαθαγγελίδης Γρηγόριος, Αγαθαγγελιδης Γρηγοριος, Grigorios Agathangelidis.
Bundle
Bundles that include this book
The NEXUS-1 Series

7 Books
- Pricing
$449
Minimum priceBought separately$679.91Suggested price$799
Author
About the Author
About the Author
Grigorios Agathangelidis is a software engineer with a professional background in Electrical Engineering and Software Engineering. His work focuses on enterprise software development, .NET architecture, database design, Entity Framework Core, SQL Server, digital-twin concepts, and the use of structured software models to make complex systems understandable.
He is the creator of NEXUS-1, a browser-based industrial digital-twin and operator-console demonstrator built as an educational and analytical platform. NEXUS-1 began as an independent engineering project: a way to explore how complex plant systems, telemetry, alarms, root-cause reasoning, reinforcement learning, compliance, reporting, audit trails, and database-backed operational intelligence could be represented inside one coherent software environment.
Grigorios is not a nuclear physicist, nuclear engineer, or nuclear power-plant specialist. The NEXUS-1 project is not the result of formal nuclear-industry experience. It is the result of independent study, software-engineering discipline, systems thinking, and a long-standing interest in how complex technical systems can be modelled, queried, explained, and audited.
His broader interest is not only nuclear technology, but the architecture of complex systems: how real-world assets, measurements, events, rules, histories, policies, decisions, and software boundaries can be joined into a model that programmers can inspect and maintain. This includes topics such as SQL Server schema design, Entity Framework Core, Code First, Fluent API configuration, digital twins, root-cause analysis, interpretable reinforcement learning, auditability, and enterprise application structure.
From Entity to Context reflects that focus. It is not a general EF Core tutorial and not a nuclear operations manual. It is a configuration atlas: a technical reference showing how a large NEXUS-1 data model can be mapped into professional EF Core configuration classes using one entity, one mapping file, schema-based folders, explicit keys, stable index names, relationships, defaults, migrations, and a clean DbContext.
Throughout the NEXUS-1 series, Grigorios approaches the subject with ambition, curiosity, and humility. The models, schemas, configuration files, simulations, and visualizations are educational and demonstrator-grade. They are not licensed, certified, validated for plant operation, or connected to any real facility.
The purpose of his work is to help software engineers and technically curious readers understand how complex systems can be made readable through structure — not by hiding complexity, but by organizing it into clear models, explicit mappings, named relationships, and software artifacts that can be inspected, challenged, and improved.
Author: Grigorios Kyriakos Agathangelidis
Greek name: Γρηγόριος Κυριάκος Αγαθαγγελίδης
Also searchable as: Αγαθαγγελίδης Γρηγόριος, Αγαθαγγελιδης Γρηγοριος, Grigorios Agathangelidis.
Contents
Table of Contents
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.