are there any good, up-to-date books on entity framework core?
i've been reading "Entity Framework Core in Action: Second Edition", but I'm not really liking the way it's structured. I've taken a look at "Programming Entity Framework: DbContext" as well, but it was published 2012 and only seems to cover working with DbContext stuff (which is useful, but I need a more comprehensive intro to ECF).
I've got a subscription to o'reilly learning so I'm looking to maximize its use. can anyone recommend a good book suited for newcomers to ECF (and maybe .net in general)
8 Replies
honestly the docs for efc are really good
https://learn.microsoft.com/en-us/ef/core/
they have tutorials, and explain a lot of its usage in very detailed manner
for example why u should project data
Introduction to relationships
All with plenty of examples
Not sure if you've done this, but $helloef could be a place to start more handson.
Getting Started - EF Core
Getting started tutorial for Entity Framework Core
(I guess it's just a subsection of what leo linked.)
yeah i've looked at both - i think the tutorial is a good start but doesn't really go into stuff like relationships/cardinality (one-to-many, many-to-many), whereas the official docs aren't really structured in a way that makes sense to me coming from Python/Django.
OTOH my issue entity framework core 2E is that it gets you thinking that you're going to build a sample app that uses it, but doesn't lay it out very clearly - for one, the full code's only available in the repository and the code snippets in the chapters i've read don't cover all the models that we're building. i had to head to the repo and search for the code to the PriceOffer, Tag, and BookAuthor models, as an example. It does fine explaining the basics of querying with LINQ though.
so far i've made do by extracting the models from EFC 2E, and building out a simple console app to mess around with the models, but it's slow going and i'm feel like i'm jumping all over the place to find answers to questions
What's 2E?
If you have questions about EFC, feel free to ask in #database. We're generally quite responsive in there is you scope what you understand/don't understand.
"entity framework core: second edition"
Oh