MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.
All Tags » .NET » EF (RSS)

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • Entity Framework: How to use Entity Splitting with different PK?

    Imagine you want to create an application which manages product stocks using Northwind but which doesn’t create products. For this, we want two Entitysets: Product and Supplier with Supplier on read only. We also want a read only product CategoryName property. How to do this with the least possible amount...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-20-2008
    Filed under: .Net, EF, EDM
  • Clarifying "AsEnumerable: not only to use unsupported methods"

    As you have probably seen with Roger comment and his blog post about this , my post "AsEnumerable: not only to use unsupported methods" wasn't very clear. So I will try to clarify it. In my old post Entity Framework Include with Func" , Niraj posted an interesting comment. In fact...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-16-2008
    Filed under: .Net, EF
  • AsEnumerable: not only to use unsupported methods

    AsEnumerable extension method allow us to use an IEnumerable<T> instead of an IQueryable<T>. This allows, for example, to call an unsupported method by LINQ To Entities in a LINQ To Entities request. However, this method can have another interest. Imagine that you want to get Northwind orders...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-13-2008
    Filed under: .Net, EF
  • Entity Framework Include with Func next

    I defined an Include with Func . Cool. But what about Include("Products.Order_Details")? Indeed my Include can only take one relationship level. So I change my code like this: public static class ObjectQueryExtension { public static ObjectQuery <T> Include<T>( this ObjectQuery <T>...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-06-2008
    Filed under: .Net, EF
  • Entity Framework Include with Func

    In Northwind DB, if you want to load categories with products, you will use Include method: context.Categories.Include( "Products" ) But what I really find bad is the fact that Products is a string. When we use LINQ, we can't understand it. So I define an extension method: public static...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-06-2008
    Filed under: .Net, EF
  • EF FAQ new update

    Daniel Simmons updated EF FAQ . What are the changes? (from Daniel 's post ). Updated: 1.2 Where else should I go to learn more about the EF? New: 7.7 Why does deleting an entity from my context not delete all related entities when I have cascade delete defined in the model? New: 18.5 Why doesn’t...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-06-2008
    Filed under: .Net, EF, EDM
  • ApplyPropertyChanges

    I see that too few developpers really know how to use ApplyPropertyChanges ObjectContext's method. So I will enumerate some importants points. ApplyPropertyChanges is used when you have an entity detached of its context and you would like to save the modifications on it. You have two choices. You...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 06-03-2008
    Filed under: .Net, EF, EDM
  • Entity Cloner

    I do an EntityCloner which can Clone an entity single or all the graph from one entity. To clone an entity, I use reflection but the problem of Reflection is it’s far. The way to Clone a product is always the same. So I generate a Delegate on the fly during first call and I always use it. For this, I...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 05-31-2008
    Filed under: .Net, C#, MSIL, EF
  • Entity Data Model: Big visibility impovement

    Until last version, EDM didn't allow to choose EntitySets visibility (so public) neither EntityTypes and limited the EntityType properties get and set to public or private. Since VS 2008 SP1 Beta, we can choose EntitySets visibility between private, protected, internal and public. It's the same...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 05-23-2008
    Filed under: .Net, EF, EDM
  • EF FAQ Updated

    Daniel Simmons updated EF FAQ . What are the changes? (from Daniel 's post ) " · Some minor formatting edits. · Updated: 1.2 Where else should I go to learn more about the EF? · New: 9.3 What does the SelectValue builder method do? What is “select value” in Entity SQL? · New: 18.4 How many Includes...
    Posted to Matthieu MEZIL (Weblog) by Matthieu MEZIL on 05-21-2008
    Filed under: .Net, EF, EDM
Page 1 of 2 (16 items) 1 2 Next >


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems