Toggle navigation
Learn Entity Framework Core
Your guide to using the latest version of Microsoft's Object Relational Mapper
EF Core Newsletter
Home
How To Get EF Core
DbContext
Adding Data
Modifying Data
Deleting Data
Change Tracker
DbSet
Querying Data
Adding Data
Modifying Data
Deleting Data
Model
From Existing Database
Shadow Properties
Relationships
Managing One To Many Relationships
Referential Constraint Action Options
Conventions
One To Many Relationship
One To One Relationship
Many To Many Relationship
Configuration
Data Annotation Attributes
Column Attribute
ComplexType Attribute
ConcurrencyCheck Attribute
DatabaseGenerated Attribute
ForeignKey Attribute
Index Attribute
InverseProperty Attribute
Key Attribute
MaxLength Attribute
NotMapped Attribute
Required Attribute
StringLength Attribute
Table Attribute
Timestamp Attribute
Fluent Api
Model Configuration
Property Configuration
HasAlternatekey Method
HasColumnName Method
HasColumnType Method
HasComputedColumnSql Method
HasConstraintName Method
HasData Method
HasDefaultValue Method
HasDefaultValueSql Method
HasDiscriminator Method
HasField Method
HasForeignKey Method
HasIndex Method
HasKey Method
HasMany Method
HasMaxLength Method
HasOne Method
HasQueryFilter Method
HasValue Method
Has/With Pattern
Ignore Method
IsConcurrencyToken Method
IsRequired Method
IsRowVersion Method
OnDelete Method
ToTable Method
ToView Method
Type Configuration
ValueGeneratedNever Method
ValueGeneratedOnAdd Method
ValueGeneratedOnAddOrUpdate Method
WithMany Method
WithOne Method
One To Many Relationship Configuration
One To One Relationship Configuration
Many To Many Relationship Configuration
Connection Strings
Inheritance
Table Per Hierarchy
Concurrency
Migrations
Model Snapshot
Seeding Data
Commands
CLI Commands
PMC Commands
Walkthoughs
ASP.NET Core MVC Application
.NET Core Console Application
Using An Existing Database
Raw SQL
Database First And Entity Framework Core
Query Types
Lazy Loading
Fastest Entity Framework Extensions
Bulk Insert
Bulk Delete
Bulk Update
Bulk Merge
Markdown file
On this page
Markdown file
Latest Updates
Package Manager Console Commands
Command Line Interface commands
Commands in Entity Framework Core
The Fluent API WithOne Method
The Fluent API WithMany Method
The Fluent API ValueGeneratedOnAddOrUpdate Method