Entity Framework 6 Tutorial: Learn Entity Framework 6 from Scratch

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

Entity Framework 6 Tutorial: learn how to store and query data using Entity Framework 6.

Here you can find my other courses:

00:00 What is Entity Framework
02:07 Different Workflows
04:46 Database-first Workflow in Action
15:06 Code-first Workflow in Action
24:14 Database-first or Code-first?
Рекомендации по теме
Комментарии
Автор

Thanks Mosh!
Your course is the best I've found in a week of searches on the Internet!
A good and clear diction, an accessible explanation.
Thanks a lot!

valentindemchuk
Автор

You are the Simply I love your way of explaining. I have an interview and I have just learned the required basics of c#, .Net MVC, and Entity framework in just one day and you saved me. Thanks so so much.

esraahefny
Автор

Finally! A decent presentation on entity framework. Thank you.

stephenwall
Автор

SIr,
You are more tham amazing ! Recently I had your C# basics course on Udemy. To be honest, I learnt a lot from your course that I wasn't taught in my uni. Thanks for being awesome.

nahiandev
Автор

Thanks!! Actually I was a bit hesitant to use entity cause I like using MSSQL, but now I'm This is what I've been missing!" So easy! :) Thanks!!

divsyntax
Автор

As always top notch content. Can you please make a video on Unit testing, I am sure it be helpful to all your subscribers.

yrusTube
Автор

Excellent tutorial! I just had to migrate my ASP.ET-Core Project to a normal ASP.NET-Prject and had problems because I was using EF-Core. With this tutorial I managed it to migrate the DataBase within 15 minutes without any probelms. Great work!

moritzschmidt
Автор

Mosh, well done. You simply rocks. Your presentation, conciseness ans grip on the topic is flawless.

Thanks.

TahirAlviPakistan
Автор

Excellent presentation, I have become a great fan of your sessions on Youtube.

myaccount
Автор

Hi, sir mosh i'm very greatefull for your courses they are best, please if you can explain us the asp donner identity and how we can custumize and intigrated with real wolrd project,

belghoulbilal
Автор

Very nice, illustrative
and perfect. Thank you.

Naq
Автор

Nice explanation.. full understanding in one go..

MohanPatil_Software_Engineer
Автор

5:50 With DB first you should create the database using a Database Project in Visual Studio. You can also reverse engineer a database without the EF designer or any edmx files. There are tools you can use to reverse engineer a database to EF, and you can the model generation logic too, using t4 templates and such. For example you want your EF Models to inherit an IEntity. Also, you should treat it as designer generated code, so you can always reverse engineer from database. You should never modify the generated Models directly, if you need to make changes do so through metadata/partial classes.

danielnewman
Автор

I bought your course of Entity Framework on Udemy. I believe is well spent money :) thanks for the tutorials!

gw
Автор

You put learning programming to the next level! Thank You for sharing your knowledge and inspiring to learn more in understandable way!

zybute
Автор

Amazing I loved the way you explain the topics, I already bought your course in Udemy! Thanks for making it!

jaimerojas
Автор

I have been wanting to see _recent_ EF video tutorial for a long time. Even if this video wouldn't cover a lot of EF, as long as it states the starting point i.e. how to apply methods of old versions to EF, that is enough for me.

I like a lot of the editing of video. No-one is actually interested in you writing the code. You can tell where and what to write, but the actual typing is pointless to see. Good work with that!

One thing you could have in the video is pointing out typical pitfalls like "pay attention that you...". I had three of these (mostly because I didn't pay enough attention):

1) Adding "using System.Data.Entity;" there in code first section.
2) Typing
"public class BlogDBDontext : DbContext"
Gave me no errors, the database just didn't appear.

3)
occurred
HResult=0x80131501
Message=Unable to update the EntitySet 'Posts' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.
Source=EntityFramework
StackTrace:
at
at
at
at args) in 22

Inner Exception 1:
UpdateException: Unable to update the EntitySet 'Posts' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.
"

which was caused by not having a primary key (your database sample has it, I had just missed it). I needed to edit and run the SQL-file to add the missed primary key. And remove and re-create the edmx. Question: As I also had my "Generate Change Script" disabled, what are the basic steps you do if you forget to add the primary key on table creation process? Is it what I wrote above, or is there a simpler way to accomplish the same?

And a couple of questions:
1) At 17:09 you have this jumping to App.config. I know how to get there manually, but is the method you use a part of Resharper (noticed that in your menus) and how do you launch that window?

2) In order to get a connection string to your database, is the best way to copy-paste it from the database first example app.config or do you have some other method for that besides "just type it out from the top of your head"?


But in overall a great video! You have clear voice and there was enough but not too much pictures for my taste.

artokilponen
Автор

Brilliant, I will be buying this course on Udemy.

richardvyse
Автор

I love your video so far!

I do have a question. How do you open app config? It seems to be something I'm struggling in getting to work/find. Thank you!

OuterOrange
Автор

This is just so much fun!
Afraid I simply have spend the rest of the day doing the full course.

GaleAnders