C# with CSharpFritz - Ep 12: Get Started with Entity Framework Core

preview_player
Показать описание
In this episode, Fritz begins accessing data using Entity Framework Core. We learn about create, read, update, and delete interactions with relational databases as well as interacting with one-to-many and many-to-many relationships in our database.

Questions:
00:21:57 What extensions are you using in Visual Studio Code for C#?
00:41:54 When would you go for a code-first vs database-first approach?
00:46:01 How do you sync the database schema to your classes if there is a change in the database?
00:47:45 Database First approach with EntityFramework Core just generates the classes?
01:06:12 What is AsNoTracking ?
01:12:07 Can you implement IPropertyChanged on the class Entity Framework returns?
01:36:06 What is the difference between DbSet and IEnumerable?
01:52:03 What are your thoughts on using the repository pattern in conjunction with EF Core?

Рекомендации по теме
Комментарии
Автор

So good to hear you don't have to create the join table model for many-to-many relationships anymore.

ceedeeb
Автор

I am already looking forward to next week's session!

anikaitmakkar
Автор

am getting this error when i start the app without debugging
(SQLite Error 1: 'no such table: Student')
and i have updated the database, but it only works on the power shell in visual studio.

Golden_games
Автор

When Im trying to use GetPosts(db), AddPost(db) etc. I get unhandled exception „SQLite Error 1: 'no such table: Posts'.”) Even though I did everything step by step like in the video and when I use DB Browser I can see the Posts table
Could someone help me with that?

kubaskav
Автор

The background music is extremely distracting - we are here to learn not to listen to music

SHAWNMOSSANEN