ANKO Code Academy
AI-Native Coding Learning Platform
Courses
Labs
Discussions
12 min
presentation
Fluent API Basics
Fluent API Basics
0 / 10 completed
1
Configuring in OnModelCreating
2
HasKey - Configuring Primary Keys
3
Property Configuration
4
HasIndex - Creating Indexes
5
HasAlternateKey
6
ToTable - Customize Table Name
7
Ignore - Exclude a Property
8
IEntityTypeConfiguration for Separate Config Classes
9
Complete Example
10
Key Takeaways
Configuring in OnModelCreating
All Fluent API configuration starts from the
ModelBuilder
parameter:
Skip
Previous
Step 1 of 10
Next
← → Navigate
Space: Skip / Next
Enter: Next
Previous
Next