Integrating a Database (w/ Entity Framework) - VERTICAL SLICE ARCHITECTURE #6

Опубликовано: 07 Октябрь 2024
на канале: SingletonSean
1,232
27

Learn how to integrate Entity Framework into a vertical slice architecture application in order to communicate with a database.

Are you tired of going layer-by-layer-by-layer in order to add or change a feature in your application? You might want to try out vertical slice architecture in your next project!

Vertical slice architecture (VSA), also known as feature sliced architecture, is a technique where an application is organized into cohesive slices. This ensures related concepts are grouped together and, most importantly, can change together.

Want to learn more about VSA? Check out some other interesting content:
🔥 Vertical Slice Architecture (Jimmy Bogard) -    • 🚀 Vertical Slice Architecture (Jimmy ...  
🔥 Organize Code by Feature | Vertical Slices by CodeOpinion -    • Organize Code by Feature | Vertical S...  
🔥 Feature-Sliced Design - https://feature-sliced.design/

🕗 Timestamps:
0:00 - Introduction
1:12 - Installing Packages
1:59 - Adding a DbContext
6:55 - Generating Migrations
9:24 - Creating and Connecting to the Database
17:15 - Using the DbContext in a Feature Slice
26:15 - Testing
27:56 - Summary
29:39 - Reflecting on this Approach

📦 Source code: https://github.com/SingletonSean/secr...
🔁 Full playlist:    • Vertical Slice Architecture  

🔗 Entity Framework tools: https://learn.microsoft.com/en-us/ef/...
🔗 SQLite database viewer: https://sqliteviewer.app/

🎉 Celebrate the channel members: https://members.seandodson.com
💎 Become a member:    / @singletonsean  
📝 Check out my blog: https://seandodson.com
🏆 Donate: https://www.paypal.com/biz/fund?id=UB...