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!
Finally! A decent presentation on entity framework. Thank you.
Thanks!! Actually I was a bit hesitant to use entity cause I like using MSSQL, but now I'm like....."WOW! This is what I've been missing!" So easy! :) Thanks!!
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!
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.
Mosh, well done. You simply rocks. Your presentation, conciseness ans grip on the topic is flawless. Thanks.
As always top notch content. Can you please make a video on Unit testing, I am sure it be helpful to all your subscribers.
Excellent presentation, I have become a great fan of your sessions on Youtube.
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.
You put learning programming to the next level! Thank You for sharing your knowledge and inspiring to learn more in understandable way!
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!
Very nice, illustrative and perfect. Thank you.
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,
hi, mosh,just finished your complete mvc5 course, it was awesome. Will you publish videos about architecting and testing in mvc ,that be complete for that course.thanks
I bought your course of Entity Framework on Udemy. I believe is well spent money :) thanks for the tutorials!
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) "System.Data.Entity.Infrastructure.DbUpdateException 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 System.Data.Entity.Internal.InternalContext.SaveChanges() at System.Data.Entity.Internal.LazyInternalContext.SaveChanges() at System.Data.Entity.DbContext.SaveChanges() at EF_DatabaseFirstDemo.Program.Main(String[] args) in ...EF_DatabaseFirstDemo\Program.cs:line 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.
This is just so much fun! Afraid I simply have spend the rest of the day doing the full course.
You are the best 👍💯
Nice explanation.. full understanding in one go..
@esraahefny5859