Data Binding with DbContext

The information in this post is out of date. Visit msdn.com/data/ef for the latest information on current and past releases of EF. For WPF Data Binding see http://msdn.com/data/jj574514 For WinForms Data Binding see http://msdn.com/data/jj682076     We recently announced the release of Feature CTP4 for the ADO.Net Entity Framework (EF). CTP4 contains a preview of…

20

Productivity Improvements for the Entity Framework

Background We’ve been hearing a lot of good feedback on the recently released update to the Entity Framework in .NET 4. This release marks a significant advancement from the first release that shipped with .NET 3.5 SP1.  I’m not going to spend time here talking about what’s new, but you can check here to see for…

51

Conventions for Code First

  The latest preview of Code First allows you to describe a model using C# or VB.Net classes. The basic shape of the model is detected by convention and then a fluent API can be used to further refine your model. We recently posted about our plans to support Data Annotations as another way to…

48

Announcing the release of Entity Framework 4

The first release of Entity Framework shipped in .NET Framework 3.5 SP1 and Visual Studio 2008. Since then, we have been focused on incorporating your feedback and enabling the scenarios that you wanted us to work on. The feedback we have received through the betas and release candidate has been instrumental in helping us to…

16

Data Annotations in the Entity Framework and Code First

Data annotation attributes were introduced in .NET 3.5 as a way to add validation to classes used by ASP.NET applications. Since that time, RIA Services has begun using data annotations and they are now part of Silverlight.  Code First allows you to build an EDM Entity Framework model using code (C# or VB.NET) and is…

50

POCO Template Code Generation Options

We recently released an updated version of the POCO template that works with Visual Studio 2010 RC on the Visual Studio Gallery. In this post we will delve into the various possible code generation options for future releases of the POCO template. We hope that you will read the various options presented here and give…

17

Code Only – Further Enhancements

We’ve come a long way since the last post on Code-Only. So it’s high time for another update. We’ve been working really hard on Code-Only revving the design, and spotting missing capabilities and responding to feedback both internal and external etc.  The current plan still holds.  Code-Only will not be in .Net 4.0 with the…

43

Extending the Entity Framework Provider Model to support DDL

As part of the first previews of Code-Only we shared some code to create a database: // Create a context using code-only using (var mycontext = builder.Create(dbConnection)) {     // Create the database if it doesn’t already exist     if (!myContext.DatabaseExists())         myContext.CreateDatabase();     // Standard EF code goes here. } But in the first…

7

Custom CUD Walkthrough for LINQ to SQL to Entity Framework Metadata Conversion Template

Introduction After completing the WidgetFactory walkthrough, you may be wondering how to convert stored procedures and customized insert, update and delete functions. This walkthrough will show you how to convert an application with a stored procedure and customized insert, update and delete stored procedures to Entity Framework using the conversion template. (For more information on…

2

Widget Factory Walkthrough for the LINQ to SQL to Entity Framework Metadata Conversion Template

  Introduction This walkthrough is designed to show you how the new dbml to edmx conversion template can help you to start the conversion process. The conversion template is not yet complete, but can be used to convert basic projects like the one in this walkthrough.   Background There are several differences between LINQ to…