Entity Framework Core : Code First | Getting Started - EP01

preview_player
Показать описание

From this episode, I am going to start going through basics of #EntityFramework #CodeFirst approach.

List of DB Providers -

Content
1. Code First
2. Entity Framework Core Introduction
3. Database Providers
4. ASP.NET Web API
5. Microsoft.EntityFrameworkCore.Tools
6. DBContext
7. add-migration and update-database
8. CRUD Operations

Happy Coding!!

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

Thank you for sharing this video, it is very helpful! I watched two other videos and they missed one important step: update-database. A key step that you showed here, that made my day. Thank you soo much!!!

yogigrantz
Автор

Thanks for sharing your knowledge, mate! Keep it up!
Btw, Entity Framework is totally removed from our system, it's just too messy and difficult to maintain for all developers. It could work in a very small system but not the enterprise level! Not sure what Microsoft was thinking when they implemented this!

STUPIDYOUTUBE_HIDINGMSGS
Автор

where were you boy? please continue the series . its awesome . <3

sagysagy
Автор

How are you able to run "Add-Migrations" without first running "Enable-Migrations"?

If I try to run "Add-Migrations" I get an error telling me to run EnableMigrations first: ***No migrations configuration type was found in the assembly 'OptionsDataService'. (In Visual Studio you can use the Enable-Migrations command from Package Manager Console to add a migrations configuration).***


And if I try to run Enable-Migrations I get the error: ***No context type was found in the assembly 'OptionsDataService'.***

and then If I try and add a "using System.Data.Entity" to fix that error I get an error saying that I cant have "using System.Data.Entity" and "using at the same time.

And then if I remove "using Microsoft.ENtityFrameworkCore", the entire solution breaks for obvious reasons.

Help.

My Brain is stuck in an infinite loop.

Sirzachalot
Автор

Very insightful video bro..keep rocking..

aijinka
Автор

A really helpful tutorial. Thanks a lot. ALLAH Bless you.

fahadhussain
Автор

Helpful, Do we have only two episode for code first approach?

duttalasheshareddy
Автор

Microsoft.EntityFrameworkCore is not founded in packages,
even called it from terminal
any solution ?

abdullahramzan
Автор

Another question: how to enter information into the database? I wonder if it can be done automatically if there is an Excel table with data? Thanks)

filoffs
Автор

I have a question. How can i set some field in the table to UNIQUE? I need this but i dont know how to set it. And thanks for this lessons!

Unknown_Eugene
Автор

Hi, why don't you make also a playlist about advanced topics on C#, or an entire tutorial on ASP.NET MVC (version 5 or Core)?

LuigiZambetti
Автор

Hi,
Thanks for the Video.
I have the problems here, where migrations are running but Database is not getting created. I am getting the message "Applying Migrations..., Done". I am using CLI and command is "dotnet ef database update". Could you please help here..?

abhilashjainb
Автор

respected sir,
can you help us ?


how to create table if table not exists to existing database in ef core ?


we don't use migration because our existing databases are with clients devices and want to create additional tables to their databases after updates for feature extensions...


there was an option like Context.DbEntity.Create(); in ef6 but not getting in ef core to do so...


I used the below but it also not creating tables which doesn't exist...


try
{
var databaseCreator = as RelationalDatabaseCreator);

}
catch (Exception ex)
{

}

hintsoftware
Автор

Thank you for the video,
can this approach be used for blazor?

filoffs
Автор

What's the benefits of using sql express?

jojoduke
Автор

marry me

i'm not gay but i'm in love with knowledge

Andrew-htrf