Definitions
Sorry, no definitions found. Check out and contribute to the discussion of this word!
Etymologies
Sorry, no etymologies found.
Support
Help support Wordnik (and make this page ad-free) by adopting the word code-first.
Examples
-
You can use many different databases with EF code-first - including SQL Server, SQL Express and MySQL. embedded SQL CE 4 database engine to work within ASP. NET.
-
By default, EF code-first supports a "convention over configuration" approach that enables you to rely on common mapping conventions instead of having to explicitly configure things.
-
If we had specified any custom mapping rules, though, the EF code-first library would have honored those and generated a database that matched them.
-
We are instead focusing on the code-first approach I blogged about here.
-
By default, when you create a DbContext class with EF code-first, it will look for a connection-string that matches the name of the context-class.
-
Scott, you have no idea how long we've waited for an elegant POCO-based, code-first DAL from MS.
-
The EF code-first library inferred that this should be established because our Dinner class has an ICollection property named RSVPs, and the RSVP class has a Dinner property.
-
Alternatively, we can also take advantage of a Find () method that EF "code-first" exposes that allows you to easily retrieve an instance based on its ID:
-
Because the NerdDinners. sdf database file we pointed our connection-string to didn't already exist, the EF code-first library automatically generated it for us.
-
I hope this signals a new direction for MS to produce elegant code-first, convention-based solutions that empower advanced devs.
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.