Entries tagged 'ef' ↓

Upcoming Conference Gigs

    

TENA_I'mspeaking_250x250 


image
 
Keynote Address
working title:
Journey to DDD

Entity Framework in Core Business Applications and Domain-Driven Design Approaches

See the mini-DDD track in New Orleans & Madrid

Vote for 

Entity Framework in Core Business Applications

Automated Testing for
Fraidy Cats Like Me

 

 

Teaching a 5-day Workshop (Entity Framework Boot Camp) Oct 3-7 in Boston

I’m excited about embarking on my first full-week workshop. Until now, I have done a number of one-day workshops but I have always felt that I needed more time. There’s so much to share! Maybe five days will be enough? The workshop will be in Boston (Waltham, to be exact) the first week of...

Read More...

You Win! An EF 4.1 Update to Programming Entity Framework is In the Works!

After I finished writing the first edition of Programming Entity Framework, 832 pages long, I announced to anyone within earshot that if I every talked about writing another book to just shoot me. After I finished writing the second edition of Programming Entity Framework , which came in at nearly 900...

Read More...

Turning off Code First Database Initialization completely

I was using a hack to turn off the Database Initialization for code first. I didn’t want code first to do the model/database comparison, and found the best way I could figure out…I deleted the EDMMetadata table in the database. Yes, a total hack. Sergey Barskiy and Rowan Miller straightened...

Read More...

MVC 3 and EF 4.1 Code First: Here are my classes, now you do the rest, kthxbai

One of the announcements this morning at MIX11 was the MVC 3 Tools Update. Phil Haack has a blog post about them here: http://haacked.com/archive/2011/04/12/introducing-asp-net-mvc-3-tools-update.aspx I’m really happy to see that the newest MVC 3 Tools for Visual Studio embrace Entity Framework...

Read More...

Oracle’s Entity Framework Beta Released Today

Just got this very nice note from Alex Keh at Oracle. Hi Julie, Since I know you have a special interest in Entity Framework, I wanted to let you know that Oracle released its EF beta today. It can be downloaded from OTN. http://www.oracle.com/technetwork/topics/dotnet/whatsnew/index.html Regards, Alex...

Read More...

Code First – It’s not Entity Framework Programming , it’s Just Programming

This is what I’ve realized about using the latest iteration of EF4’s Code First in the EF Feature Pack CTP. (I will keep clarifying that code first and the new EF bits in the CTP are a preview, not for production and subject to change …) When using code first where you simply create...

Read More...

What I’m loving about the newest iteration of EF Code First in CTP4

There have been a lot of improvements to code first since CTP3 and in fact, the team has been experimenting with changes to the core Entity Framework APIs that not only support even simpler programming with code first but that we’ll benefit from in an upcoming release of .NET. (No, I don’t...

Read More...

Creating Models from Databases with Billions of Tables

By now you know I’m prone to exaggeration so that “billions” thing is a stretch, but you get the point hopefully. Lots of legacy databases have hundreds or even more tables in them. People building Entity Data Models by reverse engineering a database often bring every table and view...

Read More...

Programming Entity Framework, 2nd Edition (EF4) Table of Contents

We are closing in on finalizing the 2nd edition of Programming Entity Framework! Although the rough draft chapters are already available through Safari’s Rough Cuts program (here: http://oreilly.com/catalog/9780596807252 ) I have been editing and reshaping the content since those chapters were...

Read More...

Hard Core EF4 Full-Day Workshop, June 24th, Stockholm

The date (Thursday, June 24th), the city (Stockholm) and the abstract are firm. REGISTER HERE: http://www.dotnet4ever.se/ or directly at http://www.informator.se/utbildningar/seminarier/seminarier/hard-core-entity-framework-40.aspx Now I have to wait for the person organizing this workshop on my behalf...

Read More...

News about Programming Entity Framework 2nd Edition

Programming Entity Framework 2nd Edition (based on the RTM of VS2010/.NET 4.0) is currently available on Safari Rough Cuts at http://oreilly.com/catalog/9780596807252 . At this point most of the chapters are there. You’ll find 2-23. Note that chapter 4 will be broken into 4 and 5 in the final edition...

Read More...

Funky Behavior NoTracking Query Entities

I’ve been using a lot of NoTracking queries to grab lists of data that I don’t need change tracked. It enhances performance and cuts down on resources. There are some nuances about these entities, however. One of the interesting behaviors of EF4’s Lazy Loading is that even if you have...

Read More...

Ken Cox explores EF4’s Pluralization Service with a WCF Service

When I have done “what’s new in EF4” talks at user groups and conferences, I like to show off the new pluralization support in the EDM Wizard. I also like to have a little fun showing some cases where it doesn’t do so well. For example, it correctly singularized Breweries to Brewery...

Read More...

Today is last chance for EF Profiler 30% discount

Ayende has reminded us that Entity Framework Profiler’s Beta period ends tomorrow when it goes RTM. But that means the 30% discount also ends. It will go from $220US to $315US tomorrow. I spend a lot of time looking at what’s going on in my database when using EF and the views that EFProf...

Read More...

RIA Services and Entity Framework POCOs

WCF RIA Services contains a special domain service for entity framework which will automatically be used if you use the Domain Service template in Visual Studio. This winter I tried the template with a few projects. One of them had EntityObjects and the other had POCO entities. The EntityObjects worked...

Read More...

This RIA Services bug from MIX bits has been fixed but until new bits are released, watch out!

The MIX build of RIA services has a bug that has been fixed since. But you might experience it as I did this morning and go around in circles for a while. This blog post is to help you avoid wasting that time. I normally create my model is in its own project and hadn’t seen this problem until this...

Read More...

Include Method Extension for IObjectSet – What about the mocks?

Eager loading with Entity Framework depends on the special ObjectQuery.Include method. We’ve had that from Day 1 (first version of ef). Now we use ObjectSets in EF4 which inherit from ObjectQuery (thereby inheriting Include) and also implement IObjectSet. IObjectSet allows us to break the queries...

Read More...

Entity Framework POCO Template for .NET 3.5

UPON REFLECTION, I DECIDED THAT THIS POST WAS PRETTY MISGUIDED (must have been one of those days...). So, for safety , I have removed it completely. You *can* use T4 to customize the code generated for EntityObjects but if you begin with the T4 EntityObject template and replace .NET 4.0 specific logic...

Read More...

Two Introductory VS2010 Entity Framework Videos on Pluralsight on Demand

These are the first two. I’ve got more coming! If you don't have a Pluralsight subscription, grab a free guest pass and you'll have have access since these are part of the subset of guest pass content along with a ton of other great videos. These will also be on MSDN online shortly....

Read More...

EF4 Breaking Change: EF4 inner joins affect eager loading many to many

Hooray! Turns out it was a bug ("unintended breaking change) and it's getting fixed for RTM! :) [ see Connect submission and Microsoft's response ] Great catch George! This is an edge case that I had not noticed, but was brought to my attention this morning in an email from Dave Russell who pointed...

Read More...

Where are the EF4 providers?

Thanks to Danny Simmons ' comment below clarifying that the provides that support EF3.5 will still work for EF4 " just without new provider affecting features like model first." As far as I can tell, and confirmed by Fabio Pandolfo (@fabiopand on twitter) who is also on the hunt, DevArt's Oracle...

Read More...

Entity Framework Lazy Loading by Context or by Property?

When Entity Framework finally brought in support for Lazy Loading, there were still complaints. The lazy loading in EF4 is context based, not property based as defined by some of the other ORMs. (I’m not sure which ones or how many.) I was thinking about this today and realized that EF does, in...

Read More...

Defining Constraints in an EF4 model that don’t exist in the database

In the first version of Entity Framework, if you wanted to create a PK/FK association between entities where there was no such constraint defined in the database you have to manually edit the SSDL (and lose that edit if you update the model from db). Why would you want to do this? The typical use case...

Read More...

Entity Framework ObjectContext and Reporting

I had an email this morning from someone who was having trouble with reports populated using Entity Framework. He was running a report repeatedly but changing the filter. For example, Customers whose last name is Smith , then Customers whose last name is Barber . The problem was that after running the...

Read More...

Yes you can read (and probably write) Spatial Data with Entity Framework

After thinking about the issue with EF4 still not supporting spatial data, I emailed spatial data wizard, Jason Follas , and asked him his thoughts. He’s not too familiar with EF but said if EF supported blob types then you could just use the Microsoft.SqlServer.SqlGeometry type to read in the...

Read More...

SQL Server 2008 Data Types and Entity Framework 4

Because I’ve had a lot of conversations about spatial data types lately, I thought I would create a SQL Server table that contained one of every type then bring it into an entity data model using the wizard to see what happens. This is in EF4. Here are screenshots of the table and the entity showing...

Read More...

Entity Framework Graphs, Detaching and Lazy Loading

If you have a graph of entities which are being managed by an ObjectContext, e.g, a LineItem and its Product, and for one reason or another, you detach the Product from the context, lazy loading will query for that Product again if you happen to call LineItem.Product. Now you will have two instances...

Read More...

Beware Self-Tracking Entities Conflict with Entity Framework CTP & VS2010 RC

Adding a note to highlight Damien's comment below. Damien is on the EF team and does not recommend using the current Feature CTP with the RC. A new version will be available "soon". In comments of another blog post Ivan reminds me of something else I ran into the the VS2010 RC. I tweeted on...

Read More...

Using the Beta 2 EF POCO Template with VS2010 RC

Update: After realizing that we still want access to it, the team has made the Beta 2 file available again. You can get it from their original blog post , not from the Visual Studio Gallery links but look for a zip file at the bottom of the post. But there's more! While I had managed to figure out one...

Read More...

Video and Q&As from my Top 10 Treats in EF4 WebCast

The video from my webcast, Top 10 Treats in Entity Framework 4 is available on Oreilly’s website: http://www.oreillynet.com/pub/e/1517 . I just discovered that WebEx saved the chat window from my O’Reilly webcast last month. So I thought I would pick out the quesitons and answer them here...

Read More...

O’Reilly Webcast tomorrow, Jan 27, Top 10 Treats in EF4

Tomorrow at 10am PST/1pm EST, I’ll be presenting a live web cast for O’Reilly Media called the Top 10 Treats in Entity Framework 4. The web cast is one hour (including intro and questions). Short & sweet. You can register at http://www.oreillynet.com/pub/e/1517 . The webcast will be recorded...

Read More...

Leveraging VS2010’s Entity Data Model Designer for .NET 3.5 Projects

One of the benefits of Visual Studio’s multi-targeting is that if you are still stuck using the .NET 3.5 version of Entity Framework and are unable to move to EF4 (so sad), you can still get the new designer goodies for a .NET 3.5 project. Remember that the designer is a VS2010 feature, not a ...

Read More...

A message from your sponsor: Single and SingleOrDefault are supported in EF4

Just a friendly reminder that I’m passing on from one of the tech reviewers of my book who (thankfully) noticed that I had left a note in there about Single & SingleOrDefault not being supported. They were not in .NET 3.5 SP1 Entity Framework, but they are now supported in EF4. Single is the...

Read More...

Agile Entity Framework 4 Repository Part 5: IObjectSet and Include

Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes Agile Entity Framework 4 Repository: Part 2- The Repository Agile EF4 Repository: Part 3 -Fine Tuning the Repository Agile EF4 Repository: Part 4: Compiled LINQ Queries Agile Entity Framework 4 Repository Part 5: IObjectSet and Include...

Read More...

N-Tier Methods in Entity Framework 4 – Use with Care

One of the things I struggled with in n-Tier apps in EFv1 was the options for reconstructing entity state on the server side in order to call SaveChanges when modified data was passed in from the client. The options were to hit the database to get a set of current server values and then apply updates...

Read More...

Some of my Recent Entity Framework 4 content

Not sure if I’ve blogged all of these (so twitter-addicted these days) so here’s a list of recent articles & webcasts I’ve done on EF4. CoDe Magazine What’s New in Entity Framework 4? Part 1: API Changes (Sept/Oct 2009) What’s New in Entity Framework 4, Part 2: Modeling...

Read More...

Agile EF 4 Repositories Part 4: Compiled LINQ Queries

Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes Agile Entity Framework 4 Repository: Part 2- The Repository Agile EF4 Repository: Part 3 -Fine Tuning the Repository Agile EF 4 Repositories Part 4: Compiled LINQ Queries Agile Entity Framework 4 Repository Part 5: IObjectSet and Include...

Read More...

EF POCOs and GetObjectStateEntry

Even when working with POCOs, the EF’s ObjectContext can track the objects using ObjectStateEntry objects just as it does for entities that inherit from EntityObject. I was thinking about ObjectContext.ObjectStateManager.GetObjectStateEntry. This method has two overloads. One takes an entity and...

Read More...

Slides and Demos from Recent Entity Framework 4 Presentations

I have gathered up my slides and demos from Oredev and DevConnections and put them on the internet. The PPTs are on Slideshare. The demos are on the downloads page of my book’s website: www.learnentityframework.com . That page also has the links to the slideshare urls. Here’s what you’ll...

Read More...

Agile EF4 Repository: Part 3 -Fine Tuning the Repository

Third post in my Agile EF4 Repository blog series: Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes Agile Entity Framework 4 Repository: Part 2- The Repository Agile EF4 Repository: Part 3 -Fine Tuning the Repository Agile EF 4 Repositories Part 4: Compiled LINQ Queries Agile Entity...

Read More...

Agile Entity Framework 4 Repository: Part 2- The Repository

(11/21/09: Note I have changed my interface name to IBAGAContext, because it is really a contract for the context, not the repository). The Series: so far Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes Agile Entity Framework 4 Repository: Part 2- The Repository Agile EF4 Repository...

Read More...

Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes

I’m going to lay out this out in a few blog posts because it’s complex. As I am not a TDD developer, I won’t be starting from the tests. I’m doing this in a fashion which is logical to me. But that will mean you’ll get some teasers along the way that will be fleshed out...

Read More...

Agile Entity Framework 4 talks at NotAtPDC Online today

Not at PDC? Well, yeah PDC is having some sessions streamed, like keynotes etc, but for the rest of us, there’s www.notatpdc.com . Two days of live presentations on lots of great topics. Here’s a screenshot of the schedule so far (note that it is CENTRAL time). Go to the website to get speaker...

Read More...

Vs2010 IntelliTrace and Entity Framework Database Interaction

I knew that Intellitrace existed, but not until I saw Nikhil Kotahari’s tweet from PDC09 “ Cool VS demo - intellitrace - see your db queries, and track it back to your LINQ code #pdc09 ” did I think to look at what IntelliTrace reports with respect to Entity Framework database interaction...

Read More...

An Improved Entity Framework Tip for EF4 thanks to Zeeshan

In my EF Tips & Tricks talk that I just did at DevConnections, I have a suggestion to reduce redundant methods where you might expose queries to generate reference lists. E.g. static List<CustomerType> CustomerTypeList(MyEntities context) { return context.CustomerTypes.OrderBy(ct => ct.Type...

Read More...

MSDN Guidance on ASP.NET MVC vs WebForms and its Impact on my EF + ASP.NET Work

Last year at the fall 2008 DevConnections conference, I was very happy to hear Scott Guthrie providing a clear message about web forms vs. MVC in ASP.NET 4.0. Now, I am seeing something that is new for MSDN Documentation, not only similar clarity but actual guidance on when Microsoft suggests to use...

Read More...

New Entity Framework Feature CTP for VS2010 Beta 2

The EF team just released the newest version of the Feature CTP that is now compatible with VS2010 Beta2. Hooray for compatibility, but more importantly, we can now work with a greatly enhanced version of the Code Only feature and Self-Tracking Entities. Code-Only is the API that allows you to use EF...

Read More...

Designer Support for One-Way navigations in Entity Framework 4

In EF v1, it is possible to have one way navigations where you have an association between two entities but a navigation in only one of them. But the designer didn’t support this. If you deleted a navigation, the association was automatically removed. You could, however, go into the XML and remove...

Read More...

Screencast – What’s new in the Entity Data Model Designer in VS2010

I have created a screencast showing some of the best new features of the new Entity Data Model Designer. This is using the new Beta 2 version of Visual Studio 2010. The screencast is about 20 minutes long. This is not designed to be an introduction to building models. Rather, it specifically highlights...

Read More...

EF4: Lazy Loading on By Default but what about pre Beta 2 Models?

There are two changes to the lazy loading feature introduced in the Beta 1 version of Entity Framework. The first is that the property, ObjectContext.ContextOptions.DeferredLoadingEnabled has been changed to ObjectContext.ContextOptions.LazyLoadingEnabled . This is a breaking change from Beta 1 and you’ll...

Read More...

EF4: Syncing Foreign Keys and EntityReference.EntityKey

In EF version 1, a reference entity and it’s related EntityReference.EntityKey stay in sync when you change one or the other. E.g., if you have a sales order, it’s Customer property and the CustomerReference.EntityKey are automatically kept in sync by the ObjectContext. (Thanks to Craig for...

Read More...

Some Tidbits of Entity Framework 4 in Visual Studio 2010 Beta 2

Visual Studio 2010/.NET 4 released today on MSDN for subscribers so we can now start playing. It is too soon for screenshots but here are some awesome things to look for in Beta 2 after poking around for a bit. 1) Foreign Keys are now the default for new models. You’ll see the foreign key checkbox...

Read More...

ObjectContext.SaveChanges is now Virtual/Overridable in EF4

Last summer, I asked this question in a thread in the MSDN forums : So is there anyway to completely override savechanges - just replace it with your own code if for some reason you wanted to? The answer was no. As I am digging deeper and deeper into EF4 while I write the 2nd edition of Programming Entity...

Read More...

Follow up on last week’s Entity Framework Tips & Tricks webcast

Update: The webcast is online! But I unfortunately, the sound is dreadful. I’m still waiting for the recording of the webcast to go online. It’s not there yet, but when it is, it will be on the same OReillyNet page that was used for registering: Entity Framework Tips & Tricks August 27th...

Read More...

EF Tips & Tricks presentation tomorrow on OReillyNet

Tomorrow (Thursday Aug 27th at 1pm EST) I will be presenting a one hour webcast on Entity Framework Tips and Tricks . If you are curious what to expect, here’s the rundown. It’s a Tips & Tricks session, filled with a variety of things that people ask about on the forums and other things...

Read More...

Happiness is… the PHP Toolkit for ADO.NET Data Services

Last week the Interop guys at Microsoft released yet another piece of their PHP interop goodness, a toolkit for PHP developers hitting ADO.NET Data Services . It just happened that I had *just* set up a service for a client who was consuming it with a PHP application. I pointed him to the new toolkit...

Read More...

Entity Framework Tips & Tricks webcast this Thursday!

I’ll be doing a webcast on Entity Framework Tips & Tricks this Thursday for O’Reilly Media. It will be at 1pm EST and last for an hour. I plan to set aside some of that time for Q&A. It’s always fun to share these tips and I hope you can join me. More details and register here...

Read More...

Languages in the 2nd Edition of Programming Entity Framework

I have a very difficult task ahead of me with the EF4 version of my book. The book is already over 800 pages and will only get longer with all of the new features in Entity Framework 4. However O’Reilly has tasked me to keep the book to 800 pages. Something has to give. I am very proud of the fact...

Read More...

More on Oslo & Data Programmability merger

On Tuesday I blogged that the Oslo + Data Programmability (EF, ADO.NET, etc.) Teams Merge d. Well, I guess it was public and I could have talked about it a long time ago after all. Elisa Flasko from the DP team pointed out this SD Times article from April 1. Microsoft combines SOA and storage business...

Read More...

DataDirect’s Oracle Provider with Entity Framework Support has been released

From Jonathan Bruce at DataDirect : I am happy to announce that we’ve released our GA for Connect for ADO.NET 3.3 ! This includes our support for the ADO.NET Entity Framework for Oracle and a host of enterprise-ready features that will greatly enhance your makes EF deployment on your Oracle systems...

Read More...

Performance comparison of nHibernate and Entity Framework

After running a variety of performance tests, Gergely Orosz comes to the following conclusion: The performance measurements only provided significant differences in two cases. When it comes to storing data , Entity Framework proved to be significantly faster than NHibernate When deleting data , NHibernate...

Read More...

EF Table Splitting – The Opposite of Entity Splitting

There’s an Entity Framework mapping that I have paid very little attention to because I didn’t realize it was possible. It was possible, just not obvious or easy in VS2008 SP1. Thanks to Adam Cogan , who asked a question about this feature, I’ve discovered that it gets a lot more usable...

Read More...

Here I go again! Programming Entity Framework 2nd Edition (for EF4)

Well, it’s official. I’ve gone completely mad and just sent a signed contract back to O’Reilly for the rewrite of my book, Programming Entity Framework. With such big changes to Entity Framework, I could not let the current version of the book fade away, even though so much of it will...

Read More...

EF4 – New Properties for Entity Properties?

If you are working with the Beta 1 of VS2010 in an Entity Data Model, you might notice some new properties in the Properties Window for an entity’s scalar property. Are they new properties? Actually only one of them is. Let’s first change the view to see how these properties are grouped....

Read More...

Important Entity Framework Query Improvements for .NET 4.0

Kati Iceva, the gal I know as the brains behind query compilation for Entity Framework (though she may have some partners in crime) has written a great blog post laying out some of the improvements to query generation in EF4. Improvements to the Generated SQL in .NET 4.0 Beta1 Kati explains 7 major changes...

Read More...

A big step for Stored Procedures in EF4

When you are building or updating a model from a database, included Stored Procedures find their way into the SSDL (Store Schema Description Layer) of the metadata but not into the conceptual model. In order to expose them in your model, you need to create something called a Function Import which imports...

Read More...

Small EF4/WPF bug that bit me in the butt during my VTdotNET presentation

I made a big effort not to allow my What’s New in VS2010 presentation at Vermont.NET to turn into a What’s New in EF4 session. However, while I was demoing the Extension Manager, I used the T4 Editor extension as an example and what better way to show off T4 then to show the new code generation...

Read More...

Checking out one of the new stored procedure features in EF4

I certainly have not yet explored the depths of EF4 to the same extent as I have with the current version and I have a lot of discoveries ahead of me. Thanks to a tweet this morning by Zekq , I finally saw one of the promised improvements to EF’s stored procedure support. In EF v1, you can easily...

Read More...

Life without EF or any ORM

This morning I shared my frustration with writing data access and object materialization code for an older non-Entity Framework app. It didn’t take long for a number of developers to reply that they were feeling the same way! Read the full post on my DevLife blog: Life without EF or any ORM...

Read More...

Effective EF with Oracle

Now that DataDirect’s Beta of their Oracle Provider with EF support is available, Jonathan Bruce (from DD) is starting to write technical posts about how to use it. Yesterday he posted Effective EF with Oracle And today: Effective EF with Oracle (Stored Procedures with REF CURSORs)...

Read More...

EF: Why work with ObjectStateEntries instead of the objects directly?

Most often when you want to interact with an object’s state, or change tracking information you cannot do that through the object itself. Instead you need to get at the ObjectStateEntry which the context created to manage the object. Inside the the ObjectStateEntry you have access to the current...

Read More...

The Rest of EF4 - Feature CTP1 Released today

There were three big things that the EF team could not get into the VS2010 box on time – POCO T4 Templates, Code-Only features (POCO without a model) and Self-Tracking Entities. Even though VS2010 is only in Beta 1, the way the release cycles work, these three things won’t be part of the...

Read More...

EF4: Model-Defined Functions Level 1 & 2

Model Defined Functions are a great addition to EF4. It allows you to add functions directly into your model rather than having to place the additional logic into business classes. This not only allows the functions to be “just there”, but you can use them in queries, something that you cannot...

Read More...

Fantastic on-going Entity Framework Tips Series from EF’s Alex James

Alex James, a program manager on the EF team, has been posting a series of EF tips that just keeps getting better and better. Most of the tips revolve around using EF today with some nods to the upcoming EF4 in Visual Studio 2010. Read more…. [A DevLife blog post]...

Read More...

EF1 and EF4 at DevTeach Vancouver this week including a full day workshop on Friday June 12th

DevTeach is this week and as always, is much anticipated by attendees and speakers alike. I have been to every DevTeach since its inception in 2004 and truly enjoy it thanks to its intimacy. It’s not a gigantic conference so its really easy for everyone to get lots of quality time together. I’ll be teaching...

Read More...

EF Core Concepts Live Meeting Presentation tonight

Tonight I’ll be doing a presentation to the Ft. Lauderdale user group via Live Meeting . I’ve been playing with a WPF app that uses EF and Twitter together for something a little different than the norm to demo. And I’m doing it in VS2010. Why not? I’ll also be doing a first for me which is  using...

Read More...

More Designer Improvements - Deleting Entities from the model and from the store schema

Previous "What's New in EF 4 Posts" A Look at Lazy Loading in EF4 May 22 Upgrading EF projects to EF4- Don't forget to target .NET 4.0 May 22 Customizing EDM Code Gen in EF4 May 21 Complex Types in the EDM Designer in EF4 and a look at updating complex types in code May 21 The much improved...

Read More...

EDM Modeling: Self-Referencing Many to Many Relationships

I had an interesting question by email today and I thought I would share the response. If you have done any EDM testing with the Northwind database, you may be familiar with the self-referencing relationship in the Employee entity. Employees are related to other employees who are their managers. This...

Read More...

Another clever pattern for dealing with EF Change Tracking across processes

The Swiss MSDN team released an awesome Hands on Lab (thanks Danny for the pointer). One of the features of the lab was an n-tier solution. I had to see how they did it. They are using a shallow graph - i.e. no graph at all, so only have to deal with single entities. Then what they are doing is passing...

Read More...

A Look at Lazy Loading in EF4

Previous "What's New in EF 4 Posts" Upgrading EF projects to EF4- Don't forget to target .NET 4.0 May 22 Customizing EDM Code Gen in EF4 May 21 Complex Types in the EDM Designer in EF4 and a look at updating complex types in code May 21 The much improved EDM Wizard Pluralization in VS2010 May...

Read More...

Upgrading EF projects to EF4? Don't forget to target .NET 4.0

Previous "What's New in EF 4 Posts" Customizing EDM Code Gen in EF4 May 21 Complex Types in the EDM Designer in EF4 and a look at updating complex types in code May 21 The much improved EDM Wizard Pluralization in VS2010 May 21 Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1...

Read More...

Final release of ADO.NET provider for Firebird with Entity Framework support

Congrats to Jiri Cincura and the developers who have just released the Firebird provider which includes EF support! You can read about the release (and a happy company which is using it) on Jiri's blog at http://blog.vyvojar.cz/jirka/archive/2009/05/22/ann-firebirdclient-2-5-final-released.aspx . You...

Read More...

Customizing EDM Code Gen in EF4

Previous "What's New in EF 4 Posts" Complex Types in the EDM Designer in EF4 and a look at updating complex types in code May 21 The much improved EDM Wizard Pluralization in VS2010 May 21 Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1 May 19 EF4- What is and is not supported...

Read More...

Complex Types in the EDM Designer in EF4 and a look at updating complex types in code

Previous "What's New in EF 4 Posts" The much improved EDM Wizard Pluralization in VS2010 May 21 Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1 May 19 EF4- What is and is not supported May 13 One of the great features of an EF Entity Data Model is the complex type. However, the designer...

Read More...

The much improved EDM Wizard Pluralization in VS2010

Previous "What's New in EF 4 Posts" Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1 May 19 EF4- What is and is not supported May 13 As promised, there have been a LOT of improvements to the EDM Designer in VS2010. THe first one I looked for was to see how the pluralization worked (using...

Read More...

Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1

Previous "What's New in EF 4 Posts" EF4- What is and is not supported May 13 I know that the very brainy Kati Iceava is working on improving the query compilation that SqlClient does when creating TSQL from EF queries, so I checked a few queries to see if the changes had reached the Beta yet. I looked...

Read More...

And now...Unit Testing in EF4

As a follow up to a post I wrote earlier today on unit testing in the current version of Entity Framework [ Unit Testing in EF v1 - the database conundrum ], I wanted to point to a new post that appeared this afternoon on the ADONET team blog by Diego Vega on testing in EF4 (the new version that will...

Read More...

Unit Testing in EF v1 - the database conundrum

Seeing a Unit Testing in EF post on Eric Raeber's Too Much Code blog, made me remember I wrote this post (after talking to Eric about this topic) on an airplane over a week ago and never posted it. For an architect's guidance, check out Eric's blog post as well. One of the challenges with Unit Testing...

Read More...

EF4: What is and is not supported

Alex James wrote a great response in the EF Forums to Graham Hay's question about feature support for specific desired functionality in EF4 . I thought Alex's response was worth surfacing so I am pasting it here into my blog. Well I can give you some information, because all this has already been announced...

Read More...

Entity Framework - Change Track & Update Entities based on Views

Read all about it on my DevLife blog: Entity Framework - Change Track & Update Entities based on Views

DataDirect releases a Beta of their Oracle.NET Client with EF support

"this just in ..." New! Beta release of DataDirect Connect for ADO.NET Entity Framework provider for Oracle A few highlights from that page: Full support for LINQ to Entities, EntitySQL, and ADO.NET Data Services Support for Oracle 8i through 11g with a single provider...

Read More...

EF4 EF4 EF4

Nothing to see here, really. I'm just practicing calling "the next version of Entity Framework that will be in Visual Studio 2010 and .NET 4.0" an easier way: "EF4". We've been referring to it as V2 for such a long time. But since it is part of the .NET/VS release cycle, it makes more sense to append...

Read More...

An FAQ about EF/Astoria/LINQ to SQL: Is the data filtered on the server or on the client?

I've been asked this question enough times that I thought I would blog it. While it may seem obvious to some, it is not to everyone who is just starting out with Entity Framework or LINQ to SQL or ADO.NET Data Services. When you write a query against an Entity Data Model or a LINQ to SQL model that query...

Read More...

Using Pre-Compiled LINQ to Entities Queries in Web Apps and Services

A few months ago, Diane Wilson reported her performance findings when comparing EF to LINQ to SQL to DataReaders. Something looked wrong to me because her numbers were vastly different than what I had been seeing in the many perf tests that I did. We talked a bit and I pointed her to the critical perf...

Read More...

The cost of eager loading in Entity Framework

Everything in life is about choices and usually we have to evaluate our options before we make those choices. So it goes with eager loading vs. deferred loading in Entity Framework. We have the option of eager loading with the Include method and can use it very creatively. For an entity that has a lot...

Read More...

Inserting Many to Many Relationships in EF with or without a Join Entity

Many to Many relationships are defined in a database using a join table. Depending on the schema of that join table, they are represented differently in an Entity Framework EDM. The Person...PersonStores...StoreLocations becomes a clean *:* relationship between Person and Store. Person has an EntityCollection...

Read More...

A few SQL Server CE and Entity Framework Gotchas

I have used EF with SQL Server 2008 & 2005, Pro, Standard and Express. I have not every bothered playing with CE, because for the most part the experience should be the same. But there are a few places where you might run into trouble. One is related to connecting to the database and has nothing...

Read More...

A great set of performance tests for datareader,linq to sql, ef

I'm not saying great because it shows where EF shines in performance, but because the tests look interesting and thorough. Alex Konduforov goes past the typical "let's test performance" queries that just do select * from customers and looks at query performance from a lot of angles. In a powerpoint deck...

Read More...

Foreign Keys in the next version of EF

At the MVP summit, we saw a presentation on the introduction of FKs into the EF metadata and framework. While they go a long way to solve the many problems of using Entities across tiers, you will now have an either/or choice to make with your model. When building a model, you will now choose between...

Read More...

Can't open the EDMX file in the designer? Here's the workaround.

People email me this question every once in a while so I thought I'd blog it. It's possible to get the EDMX file into a state that confuses the designer. I know that I've done it by making changes in the designer and then closing the file without saving those changes. After that, I can't open the file...

Read More...

Getting Objects from the Object Context, not the database

I flatter myself by suggesting that this comes from "the great minds think alike department", as Danny Simmons has written a blog showing how to do something that I am quite fond of - searching the ObjectContext for entities that are already in memory. If you don't know EF very well, you might assume...

Read More...

Logging Entity Framework Queries to Look for Perf Improvement Opportunities

One of the big questions people have about Entity Framework's dynamically generated queries is "what does the store query look like?", immediately followed by "is that store query acceptable"? There are a few ways to see what the store generated queries look like. One is to use ObjectQuery...

Read More...

EF Providers on the horizon

Although I have been trying to maintain a list of available providers on my book's website ( www.learnentityframework.com/resources ), there's now a dedicated page on MSDN at http://msdn.microsoft.com/en-us/data/dd363565.aspx . (I can't seem to find the navigation path from the home page of the data...

Read More...

LINQ to Entities, Entity SQL, Parameterized Store Queries and SQL Injection

Last week, I was demoing some basic Entity Framework queries to a client and explaining that the store queries are parameterized, alleviating one area of concern. But when we looked at SQL Profiler the query was not parameterized. Why was this? The query I had used was: var query = from c in context...

Read More...

Entity Framework at Philly.NET followed by a Hands on Lab Tomorrow night (1/27)

Last week I flew to Philadelphia to speak at the Philly.NET user group. I did not one, but two EF talks to an astonishingly packed room that I have been told contained 120 people! Thanks to INETA for sponsoring this meeting and my travel expenses. There were even 3 new INETA speakers in attendance: Rachel...

Read More...

Entity Framework Error 0019

Here is an error you might get if you are refactoring a project that contains an Entity Data Model. For search purposes: BAModel.csdl(3,4) : error 0019: The EntityContainer name must be unique. An EntityContainer with the name 'BAEntities' is already defined. BAModel.csdl(118,4) : error 0019: Each type...

Read More...

EntityObject Class Constructors

Did you know that the default classes generated by the Entity Framework Designer don't have class constructors? And that this is great news? It means that you can create your own class constructors that will always be used when new entity objects are instantiated. This isn't limited to those times when...

Read More...

Mathieu Mezil is building an EDM Designer

I haven't had a chance to play with this yet but from his blog post alone, I'm happy to see the secret project that has kept Mathieu busy for the last month and a half. He's building an EDM Designer in WPF and though it is currently only read-only (aka a "viewer") it has two nice features already. The...

Read More...

EF Support for Firebird - Beta1

Jiri Cincura announces Beta1 of the FIredbird ADO.NET Data Provider 2.5.0 which has support for Entity Framework. The release is imminent. Read the announcement and get the download from the Firebird website....

Read More...

EF Designer Bug Workaround for 0..1 Associations to Derived Types (Error Code 3034)

After a lot of head scratching, I was finally able to accidentally duplicate a mapping issue reported to me by a reader of the Rough Cuts version of my book, Programming Entity Framework . Then after a lot more head scratching, I was able to discover the pattern and workaround for this problem, which...

Read More...

ORM Strategies (including EF) at DotNetUmbria User Group

Marco Poponi will be "the EF guy" at the DotNetUmbria meeting next Friday that covers different ORM options. There will also be an Intro to ORMs, an nHibernate talk and a summary to help attendees compare and contrast ORMs. So if you are near Umbria, Italy, check it out....

Read More...

Calling UDFs from Entity Framework - Not what you might have expected

Along with Stored Procedures, you can bring UDFs into an EF Entity Data Model which also surfaces as a function in SSDL. Unlike Stored Procedures, however, a UDF is composable on the server side and this is reflected in its attributes. < Function Name="ufnLBtoKG" ReturnType="nvarchar"...

Read More...

EDMX vs. EDM

In EDM misconceptions , Alex James wrote about something he and I discussed at DevConnections - a diagram in one of my slides that says "EDM" where he thinks it should be "EDMX". But I beg to differ (respectfully, of course :-)) about the representation in the diagram. Here is the offending diagram that...

Read More...

CSDL's Using Construct for Big Models

Srikanth Mandadi of the ADO.NET Entity Framework Team has begun a series on dealing with big EDMs in Entity Framework v1 on the ADO.NET Team blog. Working With Large Models In Entity Framework – Part 1 This is an important problem that needs some good guidance for solving and I'm very happy to see this...

Read More...

Consolidated Entity Framework Tutorials PDF

With my permission, Simon Segal has put together a bunch of tutorials that I have written in my blog as a single PDF. He had done it for himself and asked if it was okay to share. Here's a link to his blog post. Julie Lerman Entity Framework Tutorials consolidated Perhaps I'll get his PDF and put it...

Read More...

Entity Framework and Read Stored Procedures - a new perspective

A few years ago at DevConnections I had a long talk with Gert Drapers (from the SQL Server team) about EF when it was still in an early beta. I'm now at DevConnections in Las Vegas and caught up with Gert again and had an interesting follow up conversation about EF now that it is released. I really like...

Read More...

The Future of LINQ to SQL and EF

Ever the avoider of controversy, I've kept my head down for the past week so I could finish getting my book into the hands of the copy editor. Of course, now I'm preparing for next week's presentations at DevConnections , including a full day of EF on Monday. Which is why I haven't really said anything...

Read More...

The Hitchhiker's Guide to Entity Framework

In the original version of Douglas Adams famed book, "42" was the answer to everything. Actually it was a typo. What he meant was "V2".

Consolidated List of Entity Framework Resources

I have been maintaining a consolidated list of Entity Framework Resources on the Learn Entity Framework website, which is the site for my book. I dubbed the site name before we had the final name for the book, which is Programming Entity Framework,but kept "learn" since it is shorter. :-) On the page...

Read More...

Best approach for teaching first exposure to Entity Framework

I just returned from conferences in Amsterdam and Bulgaria where one of the sessions I presented at both conferences was an Intro to Entity Framework. Entity Framework is a vast topic and I struggle with how to approach a 60 or 75 minute intro session. I have contemplated doing a baby-step intro session...

Read More...

What's the EFing Big Deal?

Camey Combs is trying to choose between a few different titles for her Seattle v4 Code Camp (Nov 15-16) presentation on Entity Framework. I like "What's the EFing Big Deal?" What do you think? Go vote on Camey's blog or better yet, go to the Seattle Code Camp and attend her session! I personally know...

Read More...

Technology Deathmatch: LINQ to SQL vs. Entity Framework

How great is that session title? I'm happy that I don't have a session scheduled at the same time that Alex and Paul are doing this talk during the SDN Conference in Amsterdam next week. If the session is as entertaining as the title, it will be quite a lot of fun to attend! (Of course, it is likely...

Read More...

Win an MSDN Subscription at my DevTeach Entity Framework Workshop in Montreal (Dec. 5th)

Although I mentioned this in a blog post last month about the DevTeach early bird special pricing, I thought I would highlight this to see how quickly we could pack the room! :-) Not that the prospect of a full day of EF shouldn't be enticing enough. But I thought that it would be nice to reward like...

Read More...

A bookmark: EF queries for Parents who have 1:0..1 relationships to their children

I saw this thread early this summer and have spent hours looking for it since. Since i just came across it, I thought I would make a blog bookmark to it. Multiplicity of 0..1 and SQL eager loading problem Here's what the thread is about. When you query an entity that has a parent, for example an OrderDetail...

Read More...

No, I do not want Set in the name of my EntitySet

Roger Jennings wrote about this (well, ranted is probably a more appropriate word ;-) ) last week. I finally came across it today and see why he was so annoyed. I am revising all of my early book chapters to line up with the release version of Entity Framework. In doing so, I am going through all of...

Read More...

Data Access Options in Visual Studio 2008

I've written a 14-page article (that's pretty long!) comparing DataSets, LINQ to SQL and Entity Framework. It's in the current issue of CoDe Magazine. Read more here... [A New DevLife post]...

Read More...

Convenient CLR Methods aren't always the best for LINQ to Entities

Not all CLR methods can be used when building LINQ to Entities or LINQ to SQL queries. The method needs to be something that can be expressed in the native query language. So if you have a date field, you can't use ToShortDateString in the query since there is no equivalent. You'll get runtime exceptions...

Read More...

EDM Stored Procedures - what the heck is niladic

If you are not a comp-sci major, mathematician, DBA or something along those lines, there's a term in the Entity Data Model that might make you cross-eyed when you read it. Function Name="InsertContact" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics...

Read More...

POCO Sample for EF V1

I picked my head up today from what I've been focused on and took a look at my blog feeds and was happy to see that Jarek Kowalski had a new post. He doesn't write a lot of blog posts, but they are generally pretty juicy. This one didn't disappoint. Persistence Ignorance (POCO) Adapter for Entity Framework...

Read More...

New addition to the EF Team - Andrew Peters

by way of Alex Andrew Peters is joining the EF team . Funny to see all of the comments about the growing numbers of kiwis (is it PC for a non-kiwi to use that term?) at Microsoft. :-)...

Read More...

More on Foreign Keys in EF

For some background, check out a previous post called " Where's my Foreign Key?" I came across a scenario where I have a foreign key for an entity in the form of an ID. And the scenario is in a web page. I need to turn that ID into an EntityReference, but I don't think that it's fair to ask...

Read More...

EntityKeys are case sensitive

If you create an Entity Key on the fly: dim ekey= New EntityKey( "NWentities.Customer" , "customerID" ,1234) .csharpcode, .csharpcode pre{ font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/}.csharpcode pre { margin...

Read More...

Congrats to IdeaBlade for the release of DevForce with Entity Framework

This just popped into my inbox. IdeaBlade has released their EF version of DevForce. DevForce EF is our latest product supporting Microsoft's LINQ and the Entity Framework. It carries forward most of the features and all of our experience from DevForce Classic dating back to 2001. Why so special? Full...

Read More...

Another E.F. Gotcha - Do no explicitly cast in queries when using Include!

There are a number of things in Entity Framework where if you don't know exactly what to expect, you will get bad data. The lack of implicit lazy loading is one of those things for developers who have come to expect that behavior based on their experience with other ORMs. That was intentional on the...

Read More...

Comparing times for loading models ofdifferent (exaggerated) sizes

Prompted by Roger Jennings' post Entity Framework Instantiation Times with a 120-Table Database , but with limited time to do a thorough investigation, I did a quick trial this morning comparing AdventureWorksLT with it's dozen tables/views to another model with about 400. There are a few up-front costs...

Read More...

Reposting Entity Framework Tutorials over on ProgrammingEntityFramework.com

Unfortunately, the datadeveloper.net website is "in between hosts" and we are still waiting for the owners of the site to place it elsewhere. That means that now that EF has RTM'd and a lot of people are suddenly looking for help, the tutorials that I wrote are not there to help out. I've recovered six...

Read More...

Entity Framework Designer and Large Databases

The Northwind database has 27 tables and views. AdventureWorksLT has 17. Sound like your database? Probably not. What have people who have been pushing the designer with databases with hundreds or even thousands of tables & views been experiencing? According to Noam Ben-Ami who is on the team that...

Read More...

Entity Framework Supported Mapping Scenarios White Paper

From Microsoft Entity Framework Supported Mapping Scenarios Writer: Asad Khan Published: July 2008 Applies To: Entity Framework Summary: This white paper enumerates the supported mapping scenarios in Entity Framework. It also mentions important design considerations for store schema in order to deal...

Read More...

A few things you can't do with EF queries which you won't find out until runtime

Naturally, these are on my mind because my hand still stings from getting slapped by the runtime when I tried to do this. LINQ to Entities does not support projecting into known types structures. Note, I tried this first with a structure, then saw the forum thread which I quoted below that I apparently...

Read More...

Article: Data Access Options in Visual Studio 2008

The Sept/October 2008 issue of CoDe Magazine contains an article that I wrote highlighting some of the major differences between DataSets, LINQ to SQL and Entity Framework. As long as the article is, and it is the longest I have ever written for CoDe at 14 pages, of course it was impossible to cover...

Read More...

LearnEntityFramework.com & ProgrammingEntityFramework.com

I've created a site that will eventually be used for my book, Programming Entity Framework. Before I had a book title I had started out using LearnEntityFramework.com then pointed ProgrammingEntityFramework.com to the same spot. In the long run the urls just point the thedatafarm.com/learnentityframework...

Read More...

Entity Framework Documentation for VS2008 SP1

The starting point for EF in the online documentation is here: http://msdn.microsoft.com/en-us/library/bb399572.aspx This will help! You'll need to dump your Internet Explorer Temp files if you are not getting SP1 documentation. Otherwise you'll see Beta 3 and it will be obvious. Here is a screenshot...

Read More...

EF: GetRelationTypeExpensiveWay

I spend a lot of time in Reflector learning about Entity Framework but here's a very oddly named (yet descriptive, don't you think?) method I missed. In EF, when your entities are being managed by the objectContext, relationships are defined by separate objects. In order to build a graph, the context...

Read More...

Updated List of 3rd party databsae Providers ramping up to support EF

On the ADO.NET Team blog: Third Party Provider Support for the Entity Framework RTM I found this video a few weeks ago from Sybase on YouTube of all places where they talk about SQL Anywhere 11's support for EF when someone had emailed me asking about SQL Anywhere support. SQL Anywhere 11 supports the...

Read More...

Entity Framework changes between SP1 Beta and RTM

On the ADO.NET Team blog there's a list of changes between SP1Beta & RTM: What's new in the VS 2008 SP1? The designer got over 200 bug fixes including a bunch that help with source control and a few of the annoying validation error messages that are incorrect (and send you chasing down a problem...

Read More...

A Big Day for the Entity Framework and ADO.NET Data Services teams

The release of Visual Studio Service Pack 1 today (currently available for MSDN Subscribers to download), marks the RTM of Entity Framework and ADO.NET Data Services. It's been a long haul for EF, initially shown off in early 2006. ADO.NET Data Services, or ANDS as I've seen Shawn Wildermuth call it...

Read More...

Don "Trust Nothing" Kiely jumps into the Entity Framework

Don Kiely has been preaching the evils of Full Trust in .NET, SQL and Windows for quite a while. SO when he saw a question on the ASP.NET Forums on using the Dynamic Data Controls with EF as the data provider that involved a trust issue, he was on it like white on rice. Dynamic Data with the Entity Framework...

Read More...

Quick Trick for forcing MetadataWorkspace ItemCollections to load

This may only mean something to about 10 people on the planet, but I thought I'd share it anyway. If you are using Entity Framework's MetadataWorkspace to dig around in the model's structure, the CSpace (schema from the conceptual layer aka CSDL) is readily available however, the other collections, SSpace...

Read More...

GetObjectbyKey in E.F. vs. Querying for a single entity

Even though I seem to have gotten it right when I wrote about this in my book (I just checked) in my own memory I have had a misconception about GetObjectbyKey. I thought that GetObjectbyKey and TryGetObjectbyKey only searches the cache for entities that already have been created. But I realized this...

Read More...

Querying with LINQ to Entities vs ObjectQuery in EF

I am copying (and slightly modifying so that it is not out of context) a forum post that I wrote to put here in my blog. Here's the original thread if you are interested. When working with object services, you can query data using  LINQ to Entities or ObjectQueries with Entity SQL. Unless you specifically...

Read More...

Overloading Entity Framework Methods: More GetObjectStateEntries

I have been writing gobs of Extension methods for entity Framework through the course of writing my book. I was inspired by this forum thread to create extension methods to overload existing methods in the APIs. One pattern that was annoying me was that frequently when I'm using the GetObjectStateEntries...

Read More...

Mike Taulty's at it again: ADO.NET Data Services videos

Mike has posted a bunch of ADO.NET Data Services videos up on Channel 9. Even though I haven't had a chance to check them out yet, it's easy to presume that these are going to be as great as all of his other screencasts. http://channel9.msdn.com/tags/UK He says there are more to come. Enjoy....

Read More...

Entity SQL Shortcut

I learned a neat ESQL trick from Danny Simmons today. The most basic Entity SQL expression is one that would simply query for a single entity with no filters, no projection etc. context.CreateQuery<Customer>("SELECT VALUE con FROM MYEntityContainer.Contacts AS con") You can actually express...

Read More...

Overriding ObjectContext.SaveChanges

Someone posted a question in the Entity Framework MSDN forum asking for an example of overriding SaveChanges. I thought I had posted one in an early thread but couldn't find it. Nor could I find an obvious example anywhere on the web, so I thought I would put one here on my blog. There aren't a lot of...

Read More...

Looking at EF Performance - some surprises

A few months ago, Brian Dawson gave us a look at a bunch of perf tests for querying with ADO.NET and Entity Framework. Exploring the Performance of the ADO.NET Entity Framework - Part 1 Exploring the Performance of the ADO.NET Entity Framework – Part 2 ADO.NET Entity Framework Performance Comparison...

Read More...

One model to rule them all? No.

I've seen this quote in many of the recent discussions of the evils of Entity Framework. In the comments to Sebastien Lambla's , blog post, Danny Simmons explains: The goal is not one model to rule them all. The goal is unifying the way you specify models in many tools to be the same. That way you can...

Read More...

Dinesh Kulkarni (LINQ to SQL) responds to the vote of no confidence for Entity Framework

Dinesh uses humor (laced with a little well deserved sarcasm) in response to "the sky is falling because Technology X doesn't fit my way of programming" .... Design of LINQ to SQL - What was I thinking or was I?...

Read More...

Jimmy Nilsson on LINQ to SQL and EF

A few months ago I came across this great interview with Jimmy Nilsson where he is talking abot LINQ and Entity Framework. I love what he says about LINQ - that it's a beatiful thing and it's small & compact. And I'd been very curious to know what Jimmy thought of EF since I missed my chance to meet...

Read More...

Oh that no-confidence vote on E.F.

Anyone who knows me knows that I just LOVE being in the middle of a controversy. Well, that's a lie. I sure know how to pick'em, though, eh? I have to deal with java and open source people (many who I am friends with, respect and admire) harassing me because I use Microsoft products. I have to deal with...

Read More...

Eager Deferred Loading of related entities

"Eager Deferred" is a bit of an oxymoron, but let me explain. Example: You have queried for customers. For particular customers you want to get their orders AND order details. customer.Orders.Load will only get the order entities. But what if you wanted to do something similar to Include in there? eg...

Read More...

A better Include method for eager loading in Entity Framework?

Matthieu has written a very clever method extension that allows the important eager loading method, Include, to accept a lambda expression (strongly typed) rather than a string for its parameter. I like this better than my method of ensuring that I type the strings correctly, which is to start entering...

Read More...

ADO.NET's New Look

What will ADO.NET 3.5 look like with the release of VS2008 & .NET 3.5 Service Pack 1? See if this image makes you think: "Oh, right! Hadn't thought of it that way!". [A New DevLife post]...

Read More...

Full frontal entities? A little privacy please!

In Beta3 of Entity Framework there was a teaser in the properties window for Entities and their properties. We saw properties for Access, Getter and Setter but they were inactive. With the latest bits (available in the VS2008 SP1 Beta) those properties have come to life. Here's what you'll find and where...

Read More...

eSqlBlast tip

I meant to mention this in my last blog post ( An excerpt from my book about eSqlBlast ) which is that with the new Entity Framework bits, the schema files that are generated when you build your EDM project are embedded into the assembly by default. Yet eSqlBlast depends on files that are accesible via...

Read More...

An excerpt from my book about eSqlBlast

eSqlBlast – Entity SQL Query Helper I could not have figured out some of these more complex Entity SQL queries without the help of a tool called eSqlBlast written by Zlatko Michailov (in his free time) who is the Program Manager for Entity SQL. The tool is available on Code Gallery along with a number...

Read More...

Days and Days with QueryViews

I have been learning a lot about EDM QueryViews lately, though more of what I'm learning (the hard way) is what you can't do with QueryViews. Most of what you'll find documented about QueryViews is to replace mappings so that your resulting entity is read only. But there are more uses for QueryViews...

Read More...

Hey lookatdat! You can copy and paste scalar properties in the designer

I was getting ready to suggest this feature because it's a pain to "move" properties if you are deriving types or doing entity splitting. I actually use the method of going into the EDMX file and copying the properties around in there so that I don't have to worry about the attributes and facets. Especially...

Read More...

Finding the Entity Framewrok & Astoria documentation for VS2008 SP1

The SP1 Beta does not include updated documentation for Visual Studio 2008, but it is all online. You can start here: http://vs2008sp1docs.msdn.microsoft.com/en-us/default.aspx A direct link to EF documentation is: Entity Framework The tools documentation is not contained within there. Instead it is...

Read More...

Another Entity Framework blogger?

Check out Ryan Hauert's blog ! Only two EF posts so far, but based on his busy postings in the forums, I imagine there will be more...

T4 Templates for Entity Framework model-friendly stored procs

While I was in the middle of a flurry of conference prep and travel in April, I got an email pointing me to an interesting blog post by Dave DeWinter who is using T4 Templates to generate entity friendly CUD stored procedures. Why "entity friendly"? Because of a number of rules enforced by the model...

Read More...

Command Execution of directly called ImportFunctions (stored procs) in Entity Framework

I hadn't noticed this before. If you have a stored procedure that is mapped to an entity such as "GetCustomersSince" which returns Customer entities, the command is executed when you create the query, not, like with normal queries, when the data is first needed. In case that sentence was too...

Read More...

Responses to Danny Simmons "Why Entity Framework" post

I'm definitely interested in what people have to say about Danny's post so I have subscribed to the Bloglines citations of it: http://www.bloglines.com/search?q=bcite:blogs.msdn.com/dsimmons/archive/2008/05/17/why-use-the-entity-framework.aspx RSS Don't forget the comment thread in Danny's post as well...

Read More...

Great fix in the EDM designer - Inheritance doesn't trash mappings

In the earlier bits, if you changed an association to an inhertiance, the type that becamse the derived type lost its mappings and th emappings for any associations. Depending on how complex that type is, recreating all of that could be challenging. I just tried this out in the new bits and the mappings...

Read More...

Safe Mode in the Entity Data Model designer

If you have screwed up your Entity Data Model, you may be familiar with safe mode when you try to open the model up in the designer. But the mapping designer has Safe Mode now, too. Here is what I get when I am in the middle of creating an inheritance in my model which means that some of my mappings...

Read More...

Thanks for Conditional Mapping based on Strings in the EDM

Over a year ago I asked a question in the EF forums about being able to use strings in conditional mapping . It is now possible! Yay.

Danny Simmons on "Why use the Entity Framework?" - A must read

Having just done a presentation at DevTeach called ".NET 3.5 Data Access Guidance", which I will be doing again at TechEd in a few weeks and I have a CoDe Magazine article on this topic coming up as well, it is definitely interesting to me to see what is probably the first somewhat official looking ...

Read More...

Notes from updating some Entity Framework apps to the SP1 Beta bits

Along with Soma and others, the ADO.NET team has announced that the next beta of Entity Framework is available with the VS2008 Service Pack 1 BETA bits . The Astoria team already has a list of changes on their blog and there will be one coming for EF as well. In the meantime.... Never a dull moment....

Read More...

Entity Framework's Golden Rule and its Platinum Rule

I have found myself explaining this in conference sessions so I thought I would write it down in my blog. Entity Framework has a Golden Rule. Though shalt not do nuttin' that the developer has not explicitly told you to do. The lack of implicit lazy loading is one of the more notable (and hotly contested...

Read More...

Another Domain Developer's view of Entity Framework and Lazy Loading

Like Jeremy Miller, who has Transparent Lazy Loading for Entity Framework on his Christmas Wish List , Timothy Khouri does not like the fact that Entity Framework doesn't support Lazy Loading. However, since he really likes Entity Framework, he wrote some code that will enforce Lazy Loading for him....

Read More...

Delete Stored Procs and Navigations in the Entity Data Model

Entity Data Models have a lot of rules. They are necessary for the integrity of the model, though if you are not familiar with depth of EDMs and *why* these rules exist, many of the mapping rules may seem to make no sense when it comes trying to implement them. This gets hairy when you are mapping stored...

Read More...

An extension method for visualizing ObjectStateEntries

EntityStateObjects, to me, are one of the most important little pieces of the EF puzzle. IT is the EntityStateObject that maintains all of the critical info for change tracking. But it's hard to get the big picture of what's going on in there when debugging because all of the important stuff is delivered...

Read More...

Sneak Peek at the EntityDataSource Control

Along with a few hundred other DevConnections attendees, I got a sneak peek of the EntityDatasSource control on Monday during Danny Simmons' Entity Framework Architecture session. I think I paid more attention to the control than what Danny was saying because I was desperate to see how it was set up...

Read More...

Pay heed to what's returned by iQueryables in ADO.NET Data Services

I was experimenting with creating data services from IQueryables. Rather than use the canonical example of creating a set of 3 person objects on the fly and exposing them, I decided to create a service for my application log. (Not something I plan to expose to the web, just a learning tool ;-)). I created...

Read More...

Ruurd Boeke has succeeded in implementing IPOCO across tiers

While this has been an unfolding process on Ruurd's blog and on the CodePlex/EFContrib site, today marks an impressive day in the evolution of the PostSharp4EF project that Ruurd Boeke has been working on. He has used the available interfaces for IPOCO in Entity Framework to create a tool for using Entity...

Read More...

Entity Framework & ADO.NET Data Services to Ship with VS 2008 SP1 & .NET 3.5 SP1

These things tend to happen when I'm travelling and don't check my feeds for an entire day. I can't say this is a huge surprise since it's very sensible. I'm happy to finally have some tangible news from the team. I'll be happy to share this news in my Entity Framework workshop tomorrow! During the conference...

Read More...

Model first with EDM?

In my previous post, I managed to update a simple model from an existing database. But then I started trying to do things like build my project and ran into so many problem trying to get my simple model to interact with the AdventureWorks database that I finally gave up. I actually wrote my thoughts...

Read More...

EF UpdateModel and naming conflicts

When you use the UpdateModel feature of the Entity Framework design tools, the process relies on matching up existing entity names to table names, more specifically name of objects in the CSDL with names of objects in the database. IF you have selected objects to add and nothing with that name already...

Read More...

Eight Entity Framework Tutorials on DataDeveloper.NET

August 2008 Note: the datadeveloper.net site is "in between hosts". I am not responsible for this site, just a contributor. I don't have access to the tutorials but I have found some copies of them and am putting them here: www.learnentityframework.com/tutorials . I've written a set of Entity Framework...

Read More...

Eight Entity Framework Tutorials on DataDeveloper.NET

August 2008 Note: the datadeveloper.net site is "in between hosts". I am not responsible for this site, just a contributor. I don't have access to the tutorials but I have found some copies of them and am putting them here: www.learnentityframework.com/tutorials . I've written a set of Entity...

Read More...

ObjectQuery, LINQ to Entities and IQueryable

The return type of a LINQ query is an IQueryable, even a LINQ to Entities query. Here is a screenshot of a LINQ to Entities query at design time (code is NOT being debugged). But when the query has been processed, it's no longer an IQueryable, but an ObjectQuery. What's going on here? At design time...

Read More...

Compiled Queries in Entity Framework

I was fiddling with compiled queries yesterday and thought I would share what I saw as results. This is anything but laboratory benchmark testing so take it for what it's worth. I did only a very simple query to start with, finding SalesOrders whose total is greater than a given number. You can do this...

Read More...

Compiled Queries in Entity Framework

I was fiddling with compiled queries yesterday and thought I would share what I saw as results. This is anything but laboratory benchmark testing so take it for what it's worth. I did only a very simple query to start with, finding SalesOrders whose total is greater than a given number. You can do this...

Read More...

MSDN Forum restructuring for Data Access (LINQ and Entity Framework)

The MSDN forums for data access have been restructured a little. Entity Framework & LINQ to Entities questions: The one which has always been under " MSDN Forums » Visual Studio 2008 (Pre-release) » ADO.NET (Pre-release)" has been renamed to MSDN Forums » Visual Studio 2008 (Pre-release) » ADO.NET...

Read More...

EFExtensions and stored procs with shaped results

EFExtensions , released on CodeGallery earlier this week by EF team member, Colin Meek, has a lot of brainy goo in it. So far I've looked at the pieces that Colin has explained in his first post (first post ever) about the Extensions. While most of the extensions in the first part of his post are replicating...

Read More...

EF Stored procedures - one day, two posts

Roger Jennings wrote a dizzying (in a good way) post about stored procedures that I have not even had the chance to absorb yet but it's about creating database procedures after the fact that can be easily used with the entities and associations defined in your model . Coincidentally, Noam Ben-Ami wrote...

Read More...

Hallelujah - Entity Graphs will be XML serializable

In the EF forums, Danny Simmons lets an EF RTM cat out of the bag . And, this looks like it has the possibility to be bigger than just for EF. The EF team worked with the WCF team to make ENTIRE GRAPHS serializable, and in an interoperable way. If you look at Ruurd Boeke's blog post, Circular references...

Read More...

Another Entity Framework Team member has started blogging

It's great to see Colin Meek finally blogging. Colin has been a wealth of information on the MSDN Forums for Entity Fraemwrok related questions. It is also COlin who posted teh Entity Framework Extensions on CodeGallery a few days ago. Colin talks about the extension in his first post and how they can...

Read More...

Tip for working with embedded Ent. Framework models with Beta3

Because of a bug in the way the schema files are created, the behavior for embedding the model into your assembly and the impact on using that assembly in other projects is a little funky. This will change with the next iteration of the EF that we will see as it has been fixed. In the meantime, there...

Read More...

Entity Framework Extensions Library posted on COdeGallery

Cool - two in one day! Another goody on the ADO.NET Entity Framework & LINQ to Relational Data Code Gallery page ... Entity Framework Extensions Library . I'll subtitle this as "stuff we couldn't get into v1, but know you need"! The first one today was a tool to help you visualize what different...

Read More...

EF Mapping Helper on Code Gallery

There's a new very cool tool on MSDN Code Gallery from the EF Team called EF Mapping Helper . What it does is allow you to select various mapping scenarios (eg. TPH Inheritance) and the helper will display a visual image of what the mapping does and the actual XML of the CSDL, SSDL and MSL so you can...

Read More...

IdeaBlade's DevForce Entity Framework video is onlnie

IdeaBlade has a 45 minute webcast demonstrating their Entity Framework implementation. They have taken EF and plugged it into their pre-existing framework which already knows how to do a lot of the things that the EF APIs can't do yet. They also have extended the design tools (even with a pluralizer...

Read More...

Entity Framework full day pre-con workshop at DevConnections

I am in the terribly pathetic position of having to try to let people know about my workshop because it was inadvertantly ommitted from the printed brochure which has been inserted in the past few issues of MSDN Magazine and aspNetPRO magazine. My workshop is listed on the website and the online schedule...

Read More...

EF & LINQ to SQL queries against spatial data (not SQL Server 2008 though)

[thanks to Roger Jennings for the correction about spatial data] Samir Bajaj, a developer on the Entity Framework team has begun his blog with a bang. He describes a sample application (available on MSDN Code Gallery) that can switch between LINQ to SQL or ENtity Framework, highlighting the differences...

Read More...

IdeaBlade has implemented Entity Framework into their DevForce Framework

While many of us are still struggling to get our entity objects across tiers, keep change tracking in place, keep graphs together, DevForce seems to have figured it out. They are now touting their new DEF ( DevForce Entity Framework ) which going into Beta 1 soon. You can sign up for the beta and check...

Read More...

Microsoft MDM, Entity Framework and Astoria - is Jasper the missing link?

Confession: I had never heard of Microsoft Master Data Management before seeing Jamie Thompson's blogpost, MDM -> Entity Framework -> ADO.Net Data Services. Better together? . MDM is a BI tool created by a company called Stratature, which Microsoft acquired in June. Jamie writes more about that...

Read More...

EF Contrib - A CodePlex project for Entity Framework community projects

Ruurd Boeke had an Entity Framework tool he was writing and wanted to share, so he created a common project on CodePlex that can be used as a container for any other ENtity Framework projects that people are working on. IT's called EF Contrib . Ruurd is working on an easy way to implement IPOCO in v1...

Read More...

My DotNetRocks Entity Framework show is on line - win a free ____________

I recently had a fun chat with Carl and Richard about my favorite topic, the ADO.NET Entity Framework. It is now online at www.dotnetrocks.com . ( http://www.dotnetrocks.com/default.aspx?showNum=319 ) And just for fun, the first person (who I have not already told privately) who can identify a particular...

Read More...

Will LINQ to Entities and Entity SQL get SQL Server's new data types, too?

One of the points Faisal made in his post Coming soon to LINQ to SQL is that there will be support for the new types in SQL Server 2008 in the next release (SP1?). It made me wonder if the LINQ to Entities and Entity SQL will gain these before Entity Framework is released? One of the benefits of Entity...

Read More...

ADO.NET Data Services + PopFly

A while back, Pablo Castro had created a PopFly block from an Astoria service. It no longer seems to work, presumably because he created it with the preview bits, not the CTP bits. I want to use a Popfly example in my upcoming DevConnections session Web Mashups with ADO.NET Data Services , so I decided...

Read More...

From the forums - what's in the near future for Entity Framework and tools

Some of the best info about Entity Framework is buried in the forums . I wanted to surface a few important things. 1) From Danny Simmons on January 28th responding to a question about RTM , while Danny is forced to repeat yet again "first half of 2008" he drops some great info about another build to...

Read More...

Just recorded DotNetRocks about Entity Framework

Earlier today I recorded a DotNetRocks show with Carl and Richard where I got to go on and on and on about Entity Framework for a whole hour (which flew by in what felt like 10 minutes). Richard's heavy DBA background made for some really interesting questions. One issue that really stands out is that...

Read More...

Entity Framework on DotNetRocks Feb 26th

I'll be doing a DotNetRocks show with Carl and Richard about the Entity Framework. Danny Simmons was on DNR last April so it's definitely time for an update!

Variety of EF talks by different folks around the world

I mentioned a few days ago that Matthieu Mezil will be presenting on Entity Framework at TechDays 2008 in Paris next week. There are more at this conference! LINQ & Entity Framework: Fabrice Marguerie & Sebastien Ros ADO.NET Data Service: Mitsu FUruta & Pierre Lagarde There are also a bunch...

Read More...

Entity Framework Performance

One of the major accomplishments of EF Beta3 was that the performance of materializing objects through Object Services (that means with Linq to Entities or with Entity SQL) was improved significantly. So significantly that they are almost comparable with querying through EntityClient which streams data...

Read More...

Clever LINQ to Entities query trick? Or is it a bug?

In my post about rewriting Brad Abram's MVC + Entity Framework example in VB , I pointed out a better way to query a collection of objects and return their entity references (eg, query products and bring along the category information) without writing a scary query filled with references, checks for...

Read More...

MVC and Entity Framework

Oh now I am really excited. I've been very interested in ASP.NET MVC but have been trying to stay focused on learning Entity Framework. Now I get to have my cake and eat it too, as Brad Abrams just posted a sample of using the two together . I'm off to try it out!...

Read More...

Entity Framework MSDN Webcast on Wednesday (Jan 30)

Mike Pizzo from the Data Programmability team is doing a webcast on Wednesday. MSDN Webcast: Programming LINQ and the ADO.NET Entity Framework (Level 200) Event ID: 1032364888 Register Online Language(s): English. Product(s): SQL Server. Audience(s): Developer. Duration: 60 Minutes Start Date: Wednesday...

Read More...

Binding EF data to the (free) Xceed WPF Data Grid

I thought I would give the Xceed WPF DataGrid (it's free!) a whirl with Entity Framework databinding. So far I have only explored the basics - no anonymous types or sprocs and I am only working with a READ-ONLY scenario. (I did notice something in their docs about being able to modify and delete but...

Read More...

SQL Server delay does not impact Entity Framework

A question came up in the EF forums today asking if the delay of SQL Server 2008's release will mean EF will be delayed. The two are not related. There is a misconception that Entity Framework is tied to SQL Server 2008. It's definitely not. These are .NET APIs and will work with many database providers...

Read More...

Creating and consuming a WCF service to test the EntityBag class

Danny Simmons has posted the code for his EntityBag class (aka "Perseus") on the MSDN Code Gallery Site here . I grabbed it last night and set up a test project so that I could see what the payload looks like. The results of that test are in this blog post, Testing out the EntityBag . There were a few...

Read More...

Entity Framework Toolkits and Extensions collection on MSDN Code Gallery

Zlatko wrote the eSQLBlast tool. Danny 's been writing Extension Methods and the ENtityBag class. There is also a new tool for examining how code generation is done from an EDMX file. (As well as a blog by Sanjay about how code gen is done .) All of these and future stuff are now collected under one...

Read More...

Testing out the EntityBag

I've been fiddling with the EntityBag that Danny Simmons wrote . My biggest interest was in how big the payload is. I created a service that had two operations. The first returns "Hello World" and the second returns an EntityBag for an AdventureWorksLT SalesOrderHeader graph that includes it's SalesOrderDetails...

Read More...

Speaking of Ent. Framework providers - what about Access/OleDB?

My last post was about LINQ and EF Data Providers , which made me think of this. I received an email recently asking if I knew of anyone writing an Entity Framework provider for Access. I don't happen to know of any. However there's a reason. In the forums, there is a post from July where Danny Simmons...

Read More...

Should database providers be targeting LINQ or Entity Framework?

People are always asking "when will I be able to use LINQ against databaseA or databaseB?" and "when will I be able to use Entity Framework against databaseA or databaseB?" In my mind this is the same question, though most who are asking don't realize it. Why? An Entity Framework provider gets all of...

Read More...

Danny Simmons is providing guidance for dealing with EF and Web Services

It seems to me that Danny Simmons must be working on v2 of Entity Framework. The posts he has written in the past week are examples of things that would probably have been in V1 had they had the time and resources. Now they are winding down v1, building up the team and thinking about v2. Danny has written...

Read More...

Thinking about the EntityDataSource

I've been thinking about the EntityDataSource that has been mentioned in the forums. It is something that is going to be added to Entity Framework by RTM, but it doesn't exist in current bits for us to experiment with. The reason I've been thinking about it is because of some of the issues/confusion...

Read More...

Entity Framework Extension Methods

A few weeks ago, I was mooning over Extension Methods . Somehow, in the collection of language enhancements to VB9 and C#3, they have become a bit of a sleeper feature in light of LINQ. Everything is though, right? So I wrote about them and thought about them, but then went back to my task at hand. Danny...

Read More...

SQL Server CE compatibility with EF Beta 3 in a few weeks...

As per Jaroslaw Kowalski on the EF team: "We are working with SQL Server CE team to get an updated version of their provider that will be compatible with EF Beta3 out soon. It is a matter of weeks" source: MSDN forums...

Read More...

EF Mapping to Read Stored Procs, another twist

Entity Framework easily supports mapping to read stored procedures when the query results match up with an existing entity in the model. If your query results don't, then you have to create a new read only entity and entity set in teh CSDL and a new "fake table" entity and entity set in the SSDL and...

Read More...

Microsoft hires another Entity Framework/Astoria nut

Jonathan Carter was very interested in Entity Framework and Astoria. Last month, he started working for Microsoft as an Technical Evangelist . So he gets paid to share his excitement about these and other .NET technologies. Guy Burstein was very interested in Entity Framewrok and Astoria writing lots...

Read More...

Links for keeping an eye on database providers' Entity Framework status

I've been snooping around the web and found links for many of the db vendors (and 3rd party vendors) to try to watch their own news about what they are doing for Entity Framework. Here's Dave Sceppa's list of companies working on EF providers and interleaved with his list are my best stabs at a blog...

Read More...

Entity Framework books!

No, it's not what you think I was going to say... But David Sceppa from the EF team is working on one and it's on the MSPress website! Which made me go to amazon and look some more and wouldn't you know I found a few more... Not surprised that Roger's at work on a book! Perhaps there will be more......

Read More...

Some great Entity Framework Guidance about Performance in client applications

I have spent a lot of time thinking about Entity Framework in web applications and in SOA and worrying about performance, serialization and concurrency. But I haven't spent a lot of time worrying about these things with respect to client apps (winforms and WPF). In a great thread started by Nick in the...

Read More...

Mike Taulty adds his own take on Getting Started with ADO.NET Data Services

I wrote a series of Astoria posts based on the preview and have been thinking about updating them for ADO.NET Data Services, but it seems that it would be pretty redundant considering that we have three great resources already doing the same: Mike Taulty has two posts now in a series: ADO.NET Data Services...

Read More...

Implement SELECT Stored Procedures that return miscellaneous data in CTP2 of EF Designer

Note: This blog post explains theory as well as steps to implementing the stored proc. If you read my blog regularly, you are used to this. 11/30/09:Anoter note! Don't miss the fact that this is for the verison of EF in VS2008 SP1. Things have been greatly improved in VS2010. Check out this *much newer...

Read More...

Who's preparing Entity Framework Providers?

I thought I saw this a week or so ago but couldn't find it again, but it just appeared on David Sceppa's blog. "It" is a list of vendors who will have Entity Framework providers out within 3 months of Entity Framework's release. While Oracle is not on there DIRECTLY, there are 3rd party companies working...

Read More...

Are you using Entity SQL? Do not miss Zlatko's blog

Zlatko Michailov has been posting some awesome stuff on his blog. There are two that I want to highlight. The first is because it helps me answer a question I am often asked is explaining why Entity Framework is not an ORM and how it compares/contrasts to ORMs . The second is announcing that his tool...

Read More...

Embedding EDM schema files in Entity Framework Beta 3

Note: With the RTM of Entity Framework, the model's Metadata Artifact Processing property is set to Embed in Output Assembly by default, whcih is the opposite of what is described in this blog post based on Beta 3. One of the new features in Entity Framework Beta3 is the ability to embed the csdl, msl...

Read More...

EF ObjectStateManager.GetObjectStateEntries (plural)

I've been using the GetObjectStateEntry method for a while so that I can view and interact with the state of a particular entity that I have in hand. Today I used the plural version of this method for the first time and boy do I like it! GetObjectStateEntries takes as a parameter an EntityState enum...

Read More...

ADO.NET DataServices and ANY IQueryable

One of the changes with the new CTP release of ADO.NET Data Services (formerly Astoria) is that you can create a service against any iQueryable, not just Entity Framework. This is huge. Roger Jennings points to Guy Burstein's how-to with Astoria (I guess it's time to update my own now outdated posts...

Read More...

Using Entity Framework entities as Data Sources in a WinForms App

I've done this demo many times in conference and user group sessions. Someone on the ADO.NET forums asked how to do it and I thought I would just do a quick tutorial with screenshots. What this Tutorial does is demonstrate how to create and use a data source from a particular entity in the model. I'm...

Read More...

Entity Framework Deep Dive with Sam Druker on Channel 9

Sam Druker spends an hour talking in depth about Entity Framework in this new channel 9 video .

I go away for a few days and look what I miss! EF Beta 3 was released!

After I left Seattle, rather than going home as I had planned I ended up going to my parent's house (where I still am) to attend a funeral after which I was whisked up to Canastota NY where my mom was camped out with two pregnant dogs (Celeste and Bumper) near her fabulous vet (Village Vet in Canastota...

Read More...

Another EF Beta 3 Tidbit

I attended Zlatko Michailov's talk on Entity SQL today at DevTeach which was definitely interesting to me. In showing Entity SQL queries, Zlatko used a tool that he built as an experiment that evaluates Entity SQL queries (with some intellisense help as you type them!), displays the resulting provider...

Read More...

Another new Program Manager on the Entity Framework team

I learned today about Diego Vega who is another new hire on the Entity Framework team. Diego is responsible for Linq to Entities. As EF grows, there are more and more specialized people on the team. So now we have Zlatko who is the Entity SQL PM, Alex who owns the Entity Data Model and Diego will be...

Read More...

Tell me why you don't like Entity Framework

I find that people really want to tell me what's wrong with Entity Framework. This is a good thing. It's how I learn. It's sometimes a little overwhelming, but since I feel like I'm just the messenger, I don't take any of it personally. So go ahead. Tell me why you don't like Entity Framework. Why you...

Read More...

Update:[I thought there was an ] Entity SQL difference when using ObjectQuery vs EntityClient

*Update* It turns out that I completely misunderstood Zlatko Michailov's email reply to me when I was having trouble with this. I seem to have freaked out the team by writing this errant blog post. Sorry guys. When using ObjectQuery, I was doing this: Dim myAWEntities=New AdventureWorksEntities dim myObjQuery...

Read More...

More Beta 3 clues for Entity Framework: Compiled queries and TSQL in debugging

I sometimes feel like Gretel picking up tidbits on my way to the Gingerbread house when it comes to getting clues about what's coming in Beta3 of Entity Framework. The next two I have found are: From Alex James blog, Entity Framework is getting compiled queries similar to what's in LINQ to SQL. You can...

Read More...

Welcome to Alex James, a new PM for Entity Framework

As Entity Framework gets deeper and deeper, the responsibility of building and managing what will become Microsoft's core for data access must get divvied up. Alex James has recently moved from New Zealand to join the team as Program Manager for MetaData in entity framework. That does sound narrow, but...

Read More...

VS2008 RTMs today and Entity Framework Beta3 and Designer CTP2 will be here in a few more weeks

Probably no need to mention that VS2008 RTM (Team Suite English) hit MSDN subscriber downloads this morning. But what about Entity Framework? According to Danny Simmons in this forum post , we'll have new bits that align with VS2008 RTM in a few more weeks. We're working hard to wrap up the last round...

Read More...

Architecting ENtity Framework Apps Chalk Talk at DevConnections

Danny Simmons and Mike Flasko will be holding a 1/2 hour chalk talk on Architecting Entity Framework apps at 2:30 on Wednesday at DevCONnections. If you want to see all of the talks in the special Data Access track (Entity Framework and more) check this blog post where I have them all listed ....

Read More...

Are you interested in the Jasper project ("Entity Framework on Rails")

I stole the little EF on Rails quip from Roger Jennings who asked on his blog "what the heck happened to Jasper?" (my words, not his) Here's an overview article on Jasper that I wrote a few months ago. Andy Conrad, who is a PM on that replied that it's still around and they have an internal revision...

Read More...

Another tidbit from the forums.. what's coming in the EDM Designer

Someone asked a common question in the forums today about being able to update an EDM when the datastore has changed . Noam Ben-Ami, who is on the team working on the tools, says this: We are hard at work on this feature right now and hopefully we'll be able to get it into CTP2 of the designer. Along...

Read More...

EDM QueryViews vs Defining Queries (and read-only views)

In a recent ADO.NET forum post, someone asked how to do read-only views of data. There were two responses - use a QueryView and use a Defining Query. What's the difference? A Query view is an Entity SQL Query that exists right in your mapping layer. It allows you to solve two problems. THe first is creating...

Read More...

Entity Data Model - What to do when a changes is made in the database

With the current CTP of the ENtity Data Model Tools, there is no way to automatically update or refresh the EDM when a change is made to the data store. One of the beauties of the EDM is that fixing up the EDM in these cases is not only easy, but it doesn't need to have any impact on your application...

Read More...

A hint of what to look for in Entity Framework Beta3

I've found that the best resource for learning about ENtity Framework is in the forums. Today I finally saw a public statement about something I"ve been waiting for for a long time. Brian Dawson says: We've been working on making the WCF experience, especially with relationships, a much better experience...

Read More...

Mapping Associations in the EDM Designer

I had to figure this out, so here are a billion screenshots so anyone who wants to do this will have an easier time of it! One of the niceties about being able to customize your conceptual models is not having to bother the dba while they are doing important things like indexing tables and optimizing...

Read More...

Article: Introducing ADO.NET Entity Framework is now online

This article, Introducing ADO.NET Entity Framework , which I wrote for CoDe Magazine is now online. You can find it in the Nov/Dec 2007 issue which is currently on newsstands (and highly likely to be at available at your local .NET User Group.)...

Read More...

Entity SQL Blog by Zlatkov Michailov on ADO.NET Team

I have been subscribed to this blog for Zlatkov which has was phased out in July and I didn't know he was going to resurface in a new blog. I just happened to come across that today! It is a focused Entity SQL blog blogs.msdn.com/esql...

Read More...

Entity Framework at TechEd Europe

If you can't make it to DevConnections in Las Vegas where there will be a Data Access track with a whole bunch of Entity Framework session ( check it out ) and the reason is because you live over on the other side of the pond, there are a bunch of EF talks at TechEd Europe. Mike Taulty lists them here...

Read More...

EF EntityClient for performance

Earlier this week, I wrote a post discussing when I would choose querying an data through an Entity Data Model using LINQ to Entities vs. Object services + Entity SQL vs. EntityClient + Entity SQL . One of the advantages I pointed out about using EntityClient is that it returns datareaders and does not...

Read More...

Lots of Entity Framework at DevConnections Nov 5-8, Las Vegas

In his " Microsoft's Data Access Strategy" blog post, Mike Pizzo, who is an architect for the overall Data Programmability team at Microsoft says: "The Entity Data Platform is a multi-release vision, with future versions of reporting tools, replication, data definition, security, etc. all being built...

Read More...

Choosing LINQ to Entities vs Entity SQL vs. EntityClient

The title is a bit of a misnomer and not comparing apples to apples. To do it right would have been longer. The real comparison is "Choosing LINQ to Entities vs. Entity SQL+Object Services vs. Entity SQL+EntityClient" When doing an intro session on entity Framework last night for GUVSM in Montreal, even...

Read More...

Introducing ADO.NET Entity Framework Article in CoDe Mag Nov/Dec

While this is not online yet, I do have the latest issue of CoDe Magazine in my hands which has (among some other great articles!) an intro article I have written on Entity Framework. I originally wrote the article using VS2008 Beta1 and Entity Framework beta1, then (as it always seems to happen) the...

Read More...

Unit testing LINQ to SQL and Entity Framework

Even though I'm still a Unit Testing luddite, I've been looking around to see how people are getting LINQ to SQL and Entity Framework to work in their Unit Testing scenarios even though neither technology is really built to test against well. First, I found this excellent post by Ian Cooper that explained...

Read More...

Get Ready for the MSDN Tour, Astoria and Entity Framework

The MSDN Events Tour for Q4 runs from Oct 16 - Dec 31 and hits 51 cities (including Burlington, VT!). One of the sessions is about Astoria* and it is called "A New Paradigm for Data Development with Web Based Data Services". Astoria sits on top of Entity Framework, and the session will also give a brief...

Read More...

Entity Framework object graphs and viewstate

I've been playing with using EF object in code-behind of aspx web pages. The first issue to hit is postbacks. Entity Objects are Binary Serializable so they can be stored in ViewState. Like many other objects, you need to put your entities into viewstate (I'll deal with session and application caching...

Read More...

XML Serializing Entity Framework entities with their children for SOA

Another challenge in working with tiered solutions (notably web services) that require xml serialization of entity objects is that the xml serializer does not serialize the entire graph. It only gets the main object and drops all of the relations. This is not because Entity Framework is trying to be...

Read More...

More on Disconnected Entity Framework

One of the biggest challenges with Entity Framework for updates is that if you want to move objects across tiers, you lose the object's state. All of the state and change tracking information is maintained by the object context. While entity objects are serializable (xml and binary) and can be transported...

Read More...

At SQL PASS 2007? Go learn what DBA's should know about Entity Framework!

Erick Thompson is at SQL PASS and will be doing a talk on Entity Framework for DBAs tomorrow (Wednesday) afternoon. You can get a preview of what he will be talking about by reading his recent post on the topic ....

Read More...

Astoria CTP Refresh for VS 2008 Beta 2 is out

Just a quick pointer to Pablo Castro's announcement that a new CTP for Astoria is out that will work with vS2008 Beta2. An important note, this is a refresh of the CTP, which is based on the early prototype. The actual production code that they are working on is a totally different set of bits. Hmm,...

Read More...

Entities, Viewstate and postback

I was fiddling with Entity Framework in a website and was happy to see how smoothly objects serialize (binary serialization) across postbacks. Query for one customer along with their SalesOrderHeaders: Dim query = (From cust In aw.Customer.Include("SalesOrderHeader") Where cust.CustomerID = 151) Grab...

Read More...

Entity Framework's Danny Simmons will be hanging out at DevConnections

I was happy to see Danny's blog post this morning that he'll be coming to DevConnections . He's not even presenting. But since there will be an entire Data Access track (a day of 4 microsoft talks and then 2 days of third party speakers) and in that track there will be 8 talks that will either be about...

Read More...

Entity Data Model Associations: Where's my Foreign Key?

If you've been playing with Entity Framework and used the wizard to create a model from an existing database, you'll see that the resulting model looks something like this which is a small portion of the EDM built from Northwind. Compare the Orders Entity above to the Order table schema and you'll quickly...

Read More...

Finishing up READ Stored Procs brought in by the Entity Framework EDM Wizard

When you build an EDM from an existing database in Entity Framework, you can get Views & Stored Procedures in addition to tables. You'll find that if you select Stored procedures, you will also get your functions. The stored procedures are only defined in the storage layer. The return type is not...

Read More...

Convertinga LINQ to Entities query to a DataTable

[Update at bottom of post] I wrote this in response to a question on the ADO.NET Orcas forums and thought I would copy it here. Note that Danny Simmons writes more information about Entity Framework and DataTables in the thread. Here's my solution for now... LINQ to Datasets does allow for conversions...

Read More...

How do LINQ to Entities queries surface in the database?

While Jim Wooley is looking at performance in LINQ to SQL , I've finally pulled the VS2008 installation on my VPC out of the mysteries of SQL Server Express and installed SQL Server Developer Edition so that I can look at my queries as they come into profiler. Note that this is all based on VS2008 Beta2...

Read More...

Sharing Entity Framwork models between projects (or teams) when developing

The new Entity Framework tools create an EDMX file which contains all three models: Conceptual, Mapping and Storage, in one file. When your project is built, individual files are created for the models, in the [familiar to those who have been using Entity Framework already] CSDL (conceptual), MSL (mapping...

Read More...

EntityKey and ASP.NET ViewState

Just to see another aspect the before and after difference of serializable EntityKeys in the Beta2 of EntityFramework, I simply stored a single Customer entity into viewstate, posted back and then looked at the entity in debug to see that yes, the EntityKey is there. I went back to my Beta1 VPC and when...

Read More...

Entity framework Tools: Package Load Failure when opening up EDMX in designer (FAQs are coming)

In the forums, Craig Lee responds to the problem reported in this thread : We are planning on releasing an FAQ of known issues, but here is a preview to see if this helps you. Issue Visual Studio displays a Package Load Failure error message for Package 'Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage...

Read More...

Exploring EntityKeys, Web Services and Serialization a little further

I have not been able to stop thinking about EntityKeys, serialization and web services since my post about them yesterday , so I have done a little more experimentation tonight. ObjectContext does have an AttachTo method. In my scenario of the incoming object from a web service client, the EntityKey...

Read More...

Knocking off Danny Simmons Entity Framework Beta 2 List: #3 & #4: EntityKey Serialization and new Entity interfaces

#1 Complex Types #2 Span [Include] The next things in the list of what's new in EF Beta 2 that I have been experimenting with are: Entity key serialization In previous CTPs EntityKey objects were not serializable, now they are. Increased persistence ignorance in entity data classes We are continuing...

Read More...

Knocking off Danny Simmons Entity Framework Beta 2 List: #2: Span

[ #1: Complex Types ] The next item in Danny's list that I wanted to look at was this: · Better support for span over LINQ to Entities queries The span feature makes it possible to pre-fetch related entities. In previous CTPs span was specified through a property on ObjectQuery<T>, but in this...

Read More...

Knocking off Danny Simmons Entity Framework Beta 2 List: #1: Complex Types

I saw complex types in the March CTP of Entity Framework and tried to implement them but found out the hard way that the functionality wasn't fully implemented. Here's the forum thread from that time . So Complex Types were the first thing I wanted to try out on Danny's list of what's new in Beta 2 ...

Read More...

First look at the Entity Framework Designer

The first thing I wanted to look at after I downloaded the new Entity Framework Beta2 and Tools CTP was the EDM Designer. The designer is displayed as the result of opening up an EDMX file. The EDMX file is the wrapper for the three Entity Data Model files (CDSL, MSL, SSDL). Therefore, you need to create...

Read More...

ADO.NET Entity Framework Beta 2 & Tools CTP are Released

FINALLY!!!! I'm just downloading them now. Read more about it and get the links at the ADO.NET Team blog, here.

Erik Meier kinda compares LINQ to SQL to Entity Framework

I just came across this interview on the INFO-Q website . I like how they do this. Short questions and answers. Each q/a has a video clip, where you can watch and listen to the subject of the interview and simultaneously read the text of the question and answer. That makes it really easy for me to paste...

Read More...

So many data access options, so little time!

At DevConnections this fall, I'm going to do a post-con, 1/2 day workshop to provide some guidance over which Data Access options in .NET 3.5 are right for you now that we have MORE choices coming out. Do you use classic ADO.NET? LINQ to SQL? Entity Framework? And if Entity Framework, do you use Entity...

Read More...

Mike Pizzo on LINQ to SQL vs. Entity Framework

Some of the best Entity Framework info is currently living in the MSDN forums. Mike Pizzo is the Principal Architect on the DP (Data Programmability) team . Today, Mike wrote a lengthy response to yet another query on "what is the difference between linq to sql and Entity Framework". At DevConnections...

Read More...

Entity Framework Visual Modeler in the next CTP/Beta release?

In the same MSDN forum thread that I referred to in my post " Beta2 - Where's Entity Framework? ", Danny Simmons says (with my emphasis) Believe me, if there were some way to release it sooner with the level of quality that is needed and including the first CTP of the designer which we have promised...

Read More...

Beta2 - Where's Entity Framework?

Since this spring, the Data Programmability team has been clear that Entity Framework is going to be developed along side of VS2008, but won't be part of the VS2008 install and that Entity Framework will be released after Visual Studio 2008 releases (during the 1st half of 2008 is the narrowest timeframe...

Read More...

Using SPAN to query entities in Entity Framework

By default, when querying entities, you need to explicitly use the Load method to get related data. This is often called "lazy loading" and ensure you only get what you ask for rather than having a query return ALL related data automatically. The new SPAN method forces an entity to include specifid children...

Read More...

Great detailed list of updates to Entity Framework

Danny Simmons has a great list of changes to Entity Framework that have finally arrived in the latest CTP. These improvements are not insignificant and the list is filled with functionality that many of us have been really looking forward to. I' feel a little harnessed having to use VWD Express right...

Read More...

Entity Framework June CTPModified Install instrux for Vista

Note that the installation instructions for the June CTP of VWD (which the June CTP of Entity Framework installs on top of) have changed. See the ADO.NET Team blog for the updated version of the post....

Read More...

June CTP of Entity Framework available

The ADONET Team today announced that the June CTP of Entity Framework is available . It is currently only available packaged with the June CTP of Visual Web Developer Express. Being a CTP release, they have just done enough to get something in our hands so we can see what they are working on. A lot of...

Read More...

Database vendors preparing for LINQ and Entity Framework

While at TechEd, David Sceppa wrote about the status of various database vendors as they create proviers for LINQ and Entity Framework. read more [A new DevLife post]...

Read More...

TechEd Focus Group on LINQ to Entities direction: SIGN UP DEADLINE IS TODAY!

The ADO.NET team is conducting a focus group about Linq to Entities during TEchEd. Unfortunately, they posted this today and the deadline to sign up is today. Here's the info to sign up. I won't be at TEchEd this year and neither will Roger Jennings, but Roger has already created a great list of points...

Read More...

ADO.NET Orcas? ADO.NET Katmai? ADO.NET 3.5?

I guess we can't call it ADO.NET Orcas any more.... I guess the right name will just be ADO.NET 3.5.

An important post from Microsoft about Entity Framework

Mike Pizzo writes a post about Microsoft's data access strategy that covers a few important things: 1) Announces that EF will not make it into the Orcas release but will ship "A few months after the shipment of Orcas, and within the first half of 2008". This plan will allow them to give us more than...

Read More...

EDM Wizard patch for Orcas Beta1 is available

From the ADO.NET Team blog : Late last week, after bits had been finalized, we found a bug in the ADO.NET Entity Data Model Wizard that shipped with Visual Studio “Orcas” beta 1. The problem has now been corrected. Please download and install the patch available at: http://www.microsoft.com/downloads...

Read More...

Orcas Beta1 EDM Wizard fix coming in few days

Although I haven't gotten my Beta1 bits quite yet , I'm keeping an eye on the ADO.NET Orcas forums and saw that apparently something broke in the Wizard that creates an the schema files from a db. Lance Olson from the ADO.NET team posted that they are aware of the boo-boo and there will be a fix/workaround...

Read More...

What do you want to know about the Entity Framework?

Check out this post from Mike Dodaro , which begins with: What else do you need to know about the Entity Framework? We've documented basic syntax and provided a few samples. How can we improve the documentation? Send us scenarios you want to implement....

Read More...

Danny Simmons (from ADO.NET team) talks about Entity Framework on DotNetRocks

There are a lot of us who have been looking forward to this show being posted: Daniel Simmons on ADO.NET Entity Framework . Now I have to find some time this weekend to listen to it. Roger Jennings has a fantastic analysis of the show here . While at DevConnections, Richard and Carl were talking about...

Read More...

Anders Hejlsberg and Me (or is that I?) on LINQ in Redmond Developer News

It's not often that one sees their name right next to Anders ' (especially considering that I'm a VB programmer :-)), but check out this LINQ article in the current issue of Redmond Developer News . While the focus is Anders and this great technology he and others (and always with a nod to Alan Griver...

Read More...

LINQ to SQL vs. Entity Framework

A recent LINQ forum question asked about the differences between Linq to SQL and the Entity Framework. This is the response that I wrote and thought I would surface it in my blog: Besides that Linq to SQL is only for SQL ( ) one of the big differences is that the EDM is more flexible and more loosely...

Read More...

What to expect in next (and future) Orcas bits for Entity Framework

I am at DevConnections where I was VERY excited to see Brian Dawson (ADO.NET team) do not one but TWO Entity Framework talks on Monday. Brian has a newer build than what we are working with in the March CTP and I saw some stuff that made me wanna whine "gimme gimme". SPAN - calling span on an entity...

Read More...

Recent Presentations on what's new in ADO.NET Orcas

Last week, I inaugurated my ADO.NET Orcas Overview at the TEchValley.NET User Group in Albany NY (with thanks to INETA!!). It was a serendipitous night for me to present there as they had just moved to new digs for their meeting, a very convenient, spacious and high tech location, so they packed the...

Read More...

Entity Framework testers are starting to get below the easy, surface-level stuff

There are some great questions bubbling up in the forums. THe ADO.NET team is busy in these discussions as well as writing some good blog posts on Entity Framework. Here's the current run down... [A DevLife post]...

Read More...

Talking about ADO.NET Orcas on MSDN GeekSpeak on Wednesday

GeekSpeak is a lot more free-form than a typical webcast and I'm not sure what to expect. I'll have the new CTP of ORCAS open and I guess we'll poke around Entity Framework and the three LINQ to ADO.NET techs (LINQ to SQL, LINQ to Entities nad LINQ to DataSet). And the most fun part is that I'll be doing...

Read More...

Sorting out LINQ and Entity Framework for Data Access

There are SO many ways to "skin the data access cat" in Orcas that I'm getting a little cross-eyed. (Though this could be from looking at all of the XML in the Entity Data Models.) I thought I would try to sort it out a little here since I have done this for some of the presentations I am putting together...

Read More...

LINQ and Entity Framework Resources for March Orcas CTP

I wrote up a list of some of the invaluable resources I have been relying on while diving deeply into the new March CTP of Orcas. [A DevLife post]

EDMGEN.exe - EDM Command Line Gen Tool

I saw mention of this new version of the command line tool in this forum post so I went looking in the MarchCTP. I modified some of the desciriptions a little to fit them onto a powerpoint slide, so this is a tad different than the real tihng C:\WINDOWS\Microsoft.NET\Framework\v3.5.20209>edmgen /help...

Read More...

Orcas March CTP is online and some new ADO.NET Entity Framework posts, too

read all about it.... [A DevLife post]

I am an ADO.NET Orcas Guinea Pig

Why do I think I'm a perfect Guinea pig for this new technology? Read more... A DevLife Post

ADO.NET Orcas Entity Data Model - Beyond ORM

Looking at a new post from the ADO.NET team about EDM...[ read more ] [A DevLife post]

Grokking Entity Mapping in ADO.NET Orcas

ADO.NET Orcas brings forth a LOT of new concepts, especially for anyone unfamiliar with Object Relational Mapping. One of the points of confusion is how entities are wired to the database. Now that I understand it, I thought I would use my own way of explaining it to help anyone who might have a hard...

Read More...

"Impedance Mismatch"? "Mismatch Impedance"?

If you have read the phrase "ADO.NET Orcas" then you have probably seen the phrase "impedance mismatch" trailing right behind it. Do you even know what it means? I don't even think the phrase makes sense! Read more... [A DevLife post]...

Read More...

Orcas Jan 2007 CTP and ADO.NET

What's in the Jan CTP for people looking for ADO.NET Orcas goo? It's basically the same as the October bits except the documentation is there. I actually sat here going back and forth between three VPCs this morning, comparing the August, October and January CTPs, just to be sure. Here's what I found...

Read More...