Entity Framework Core Part 2 - Code First from DB

preview_player
Показать описание
What? You already have a database? Don't worry - Entity Framework can cope with that too.

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

There's plenty more to come on EF, but let me know if there are specific areas you are interested in.

CodingTutorialsAreGo
Автор

This channel is underrated. Thank you for the quality content, Jasper

ErnestoNcore
Автор

I always forgot to uncheck the pluralize checkbox in EF6, that drove me nuts, your videos are great!

UnknownMoses
Автор

I usually either create a Folder called Partials but I prefer to create a class with the same name and append Partial onto the end then it sorts with the other. I have not done with with Entity Framework but have with other objects.

UnknownMoses
Автор

@13:44 how come after scaffolding my db, it generate a Singular Author and Book class instead of a plural class Authors and Books?

lesterllorca
Автор

I create the database in SQL, add class library called DatabaseFirst to the solution. Add all the required NUGET packages. Set that as the start up project and select as default project in pack manager console, execute the scaffold-dbcontext command. Move the generated classes to the library I want to use them in for the program. This way when I connect it to the production server, it creates the database for me. What about stored procedures, functions, triggers, etc... ?

UnknownMoses
Автор

Could not use 'scaffold-dbcontext MySql.EntityFrameworkCore' ( with .NET6. I've got "Unable to resolve service for type while attempting to activate
Any advice?

TheMilliardo