I am trying to convert my model-first project to code-first, as I can see dealing with the models with the graphical designer will become hard. Unfortunately, with all my googling I can't find one good reference that describes how to do code-first development. Most resources are out of date (so out of date they refer to it as code-only), and the other references I can find seem to assume you understand the basics of context building and code-first (for example, they reference code to build contexts but don't describe where that code should actually go, and how it's actually run).
Are there any decent resources for code-first development, that describe how to map your POCO entities into a database schema?
Edit: Ok well, I give up on code first for now. The getting started document I linked to in my answer seems to have some flaws in it (for example, some details of context building and the EntityConnection dbConnection type, and some of the relationship mapping code does not compile they way they have written it). I spent 2 days trying to find any way to get this to work, and I got close (I think) but ultimately failed with google completely being unhelpful.
As of right now, I think it's more productive for me to keep going with Model first development, and hope that by the time the edmx becomes awkward code-first is no longer in CTP state, and has better (as in some that actually exists) documentation.
I am marking the answer on POCOs as the correct one, as while it isn't actually code-first, if you want to have entities in code it is probably the best bet, even though it requires a database and an EDMX generated from it before it will work.