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.

    ASP.NET Community Spotlight 2010

  • 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.

    ASP.NET Community Spotlight 2010

  • 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.

    ASP.NET Community Spotlight 2010

  • We are instead focusing on the code-first approach I blogged about here.

    ASP.NET Community Spotlight 2010

  • 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.

    ASP.NET Community Spotlight 2010

  • Scott, you have no idea how long we've waited for an elegant POCO-based, code-first DAL from MS.

    ASP.NET Community Spotlight 2010

  • 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.

    ASP.NET Community Spotlight 2010

  • 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:

    ASP.NET Community Spotlight 2010

  • 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.

    ASP.NET Community Spotlight 2010

  • I hope this signals a new direction for MS to produce elegant code-first, convention-based solutions that empower advanced devs.

    ASP.NET Community Spotlight 2010

Comments

Log in or sign up to get involved in the conversation. It's quick and easy.