<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.developpeur.org/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang=""><title type="html">Matthieu MEZIL</title><subtitle type="html">I love .Net</subtitle><id>http://blogs.developpeur.org/matthieu/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.developpeur.org/matthieu/atom.aspx" /><generator uri="http://communityserver.org" version="2.1.61120.2">Community Server</generator><updated>2008-08-13T13:05:00Z</updated><entry><title>EF et WPF : Réponse à Thomas</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/30/ef-et-wpf-r-ponse-thomas.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/30/ef-et-wpf-r-ponse-thomas.aspx</id><published>2008-08-30T10:49:00Z</published><updated>2008-08-30T10:49:00Z</updated><content type="html">
  Comme ce que je vais dire est quelque chose de fondamental si vous voulez utiliser l'EF, j'ai décidé de faire un nouveau post pour répondre à Thomas.
Pourquoi il n'est pas possible d'utiliser directement 

odp.ObjectInstance = new ObservableCollect...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41254" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="WPF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/WPF/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /></entry><entry><title>EF et WPF</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/29/ef-et-wpf.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/29/ef-et-wpf.aspx</id><published>2008-08-29T19:35:00Z</published><updated>2008-08-29T19:35:00Z</updated><content type="html">
  Suite à une question que j'ai reçu par mail, j'ai développé ma première application WPF. 
Voici la question :
"J'utilise EF afin d'obtenir une extraction objet de ma BDD. Pour simplifier disons que j'ai une base COllège, avec une table Classe et une...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41250" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="WPF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/WPF/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /></entry><entry><title>TPH IS Not Null sur la relation</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/29/tph-is-not-null-sur-la-relation.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/29/tph-is-not-null-sur-la-relation.aspx</id><published>2008-08-29T06:15:00Z</published><updated>2008-08-29T06:15:00Z</updated><content type="html">
  Comme je vous le disais précédemment, il y a, avec EF V1, une restriction sur le mapping obligatoire lorsqu'on utilise la condition Is Not Null : la mapping doit obligatoirement se faire sur une scalar property et non sur une navigation property.
Com...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41241" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>LINQ To Entities : de plus en plus étrange</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/28/linq-to-entities-de-plus-en-plus-trange.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/28/linq-to-entities-de-plus-en-plus-trange.aspx</id><published>2008-08-28T11:05:00Z</published><updated>2008-08-28T11:05:00Z</updated><content type="html">
  Afin de comprendre ce qui se passait dans ce que je pense être un bug sur LINQ To Entities, j'ai analysé les requêtes SQL générées par EF. 
Pour la première requête LINQ To Entities:

from c in context.Customers.Include("Orders")
where c.CompanyNa...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41219" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="Linq" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Linq/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /></entry><entry><title>TPH : une limitation qui devrait disparaître avec la V2</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/23/tph-une-limitation-qui-devrait-dispara-tre-avec-la-v2.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/23/tph-une-limitation-qui-devrait-dispara-tre-avec-la-v2.aspx</id><published>2008-08-23T20:46:00Z</published><updated>2008-08-23T20:46:00Z</updated><content type="html">
  Quand on a une condition du style myColumn Is Not Null vous devez obligatoirement mappé la colonne sur une propriété non null. MAIS avec EF v1, vous ne pouvez pas mappé la colonne sur une relation (même avec une cardinalité à 1).
Par exemple, imagino...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41177" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>LINQ To Entities : étrange</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/23/linq-to-entities-trange-trange.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/23/linq-to-entities-trange-trange.aspx</id><published>2008-08-23T20:11:00Z</published><updated>2008-08-23T20:11:00Z</updated><content type="html">
  Avant de parler de bug, j'attend la réponse de Daniel Simmons cependant, je suis tombé sur un cas très étrange :
Avec Northwind, la requête suivante :

from c in context.Customers.Include("Orders")
where c.CompanyName.StartsWith("An")
let od = (f...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41176" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="Linq" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Linq/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /></entry><entry><title>Le TPH : bien plus qu'une s&amp;#233;lection</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/22/le-tph-bien-plus-qu-une-s-lection.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/22/le-tph-bien-plus-qu-une-s-lection.aspx</id><published>2008-08-22T11:06:00Z</published><updated>2008-08-22T11:06:00Z</updated><content type="html">
  
Pour beaucoup de personnes, le TPH, ce n'est rien d'autre qu'une sélection.
Prenons la table suivante :

Id PK
Type int NULL
J'ai déjà eu des questions pour savoir s'il était possible de faire du TPH avec un OR (ie Type = 1 OR Type = 2).
La ré...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41164" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Avoir une propriété sur l'object context qui renvoit les sous-entités v2</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/22/avoir-une-propri-t-sur-l-object-context-qui-renvoit-les-sous-entit-s-v2.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/22/avoir-une-propri-t-sur-l-object-context-qui-renvoit-les-sous-entit-s-v2.aspx</id><published>2008-08-21T23:11:00Z</published><updated>2008-08-21T23:11:00Z</updated><content type="html">
  Suite aux conseils de Danniel Simmons, j'ai réussi à faire mon générateur en une seule passe.

public class SampleEdmxCodeGenerator : BaseCodeGeneratorWithSite
{
    private EntityContainer _objectContext;
    private Dictionary&amp;lt;string, string...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41153" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="VS" scheme="http://blogs.developpeur.org/matthieu/archive/tags/VS/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Comment débugger un programme de génération de code utilisé dans VS ?</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/21/comment-d-bugger-un-programme-de-g-n-ration-de-code-utilis-dans-vs.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/21/comment-d-bugger-un-programme-de-g-n-ration-de-code-utilis-dans-vs.aspx</id><published>2008-08-21T11:27:00Z</published><updated>2008-08-21T11:27:00Z</updated><content type="html">
  Dans mon cas, il s'agit de la customisation de mon générateur de code à partir de l'edmx, mais la méthode que je propose s'applique à bien d'autre cas.
Comment faire pour débuguer le CodeGen qui s'exécute directement dans VS ?
J'ai trouvé une petite...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41141" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="VS" scheme="http://blogs.developpeur.org/matthieu/archive/tags/VS/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Avoir une propriété sur l'object context qui renvoit les sous-entités</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/21/avoir-une-propri-t-sur-l-object-context-qui-renvoit-les-sous-entit-s.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/21/avoir-une-propri-t-sur-l-object-context-qui-renvoit-les-sous-entit-s.aspx</id><published>2008-08-21T11:15:00Z</published><updated>2008-08-21T11:15:00Z</updated><content type="html">
  Dans l'entity framework, on a dans l'ObjectContext, une propriété par EntitySet. Le "problème" c'est que si on a une entité Person dérivée par une entité Employee, on n'a qu'un seul EntitySet : Persons.
Pour rajouter une propriété sur notre ObjectCon...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41140" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="VS" scheme="http://blogs.developpeur.org/matthieu/archive/tags/VS/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Debugguer avec le code du framework</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/21/debugguer-avec-le-code-du-framework.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/21/debugguer-avec-le-code-du-framework.aspx</id><published>2008-08-20T23:21:00Z</published><updated>2008-08-20T23:21:00Z</updated><content type="html">
  Avec VS 2008, il était devenu possible de débuguer avec le code du framework, cependant, on n'avait pas accès à toutes les dlls.
Avec le SP1 si. De plus, l'activation de cette fonctionnalité a été grandement simplifié : plus besoin de ne rien faire, ...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41131" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="VS" scheme="http://blogs.developpeur.org/matthieu/archive/tags/VS/default.aspx" /></entry><entry><title>EF : SELECT avec une SP</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/20/ef-select-avec-une-sp.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/20/ef-select-avec-une-sp.aspx</id><published>2008-08-20T11:19:00Z</published><updated>2008-08-20T11:19:00Z</updated><content type="html">
  Imaginons que l'on ait une procédure stockée qui fait juste un SELECT et que l'on veuille l'intégrer dans notre EDM. Pour cela, on va créer un entity type. Maintenant imposons une contrainte : il faut forcément passer par la procédure stockée pour réc...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41082" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>SSDL View et CUD operations</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/19/ssdl-view-et-cud-operations.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/19/ssdl-view-et-cud-operations.aspx</id><published>2008-08-19T05:20:00Z</published><updated>2008-08-19T05:20:00Z</updated><content type="html">
  Je viens de recevoir un mail dont voici un extrait sur lequel j'ai décidé de bloggué :
"Pour ce qui est de mon problème, effectivement avec une SSDL View ça marche très bien. Même les mises à jour fonctionnent, par contre impossible de faire des inse...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41053" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>TPH avec une relation</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/18/tph-avec-une-relation.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/18/tph-avec-une-relation.aspx</id><published>2008-08-18T21:08:00Z</published><updated>2008-08-18T21:08:00Z</updated><content type="html">
  Soit la base suivante : 

une table Customers

CustomerId (PK)
Name
CustomerTypeId (FK vers CustomerTypes.CustomerTypeId)
une table CustomerTypes

CustomerTypeId (PK)
Description
L'idée est de garder la relation entre Customers et CustomerT...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41049" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Tout le mapping avec EDM</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/18/tout-le-mapping-avec-edm.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/18/tout-le-mapping-avec-edm.aspx</id><published>2008-08-18T19:32:00Z</published><updated>2008-08-18T19:32:00Z</updated><content type="html">J'avais écrit un article sur 
le mapping "basique" d'EDM
MS a publié un document officiel sur ce qu'il est ou non possible de faire comme mapping avec EDM.                                                                                                  ...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41048" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Quizz 10 - Où placer le Where</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/18/o-placer-le-where.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/18/o-placer-le-where.aspx</id><published>2008-08-18T19:18:00Z</published><updated>2008-08-18T19:18:00Z</updated><content type="html">
  Ce quizz est un peu spécial car il est inclut dans "un vrai post".
Où placer le where ? Cette question a l'air très simple mais ce n'est pourtant pas si facile que ça.
Reprenons la solution que je propose sur le dernier quizz de Mitsu :

names.Sel...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=41046" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="C#" scheme="http://blogs.developpeur.org/matthieu/archive/tags/C_2300_/default.aspx" /><category term="Linq" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Linq/default.aspx" /><category term="Quizz" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Quizz/default.aspx" /></entry><entry><title>EF au secours des bases "étranges"</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/14/ef-au-secours-des-bases-pourries.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/14/ef-au-secours-des-bases-pourries.aspx</id><published>2008-08-14T11:11:00Z</published><updated>2008-08-14T11:11:00Z</updated><content type="html">
  J'ai été confronté à une BD que je qualifierais de très étrange.
En gros, voici le schéma simplifié de la base :

Une table T1 avec 3 colonnes : 

Id (PK) 
FK1 
FK2
Une table T2 avec 3 colonnes : 

Id (PK) 
FK1 
FK2
Ce qui m'a été demandé...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=40969" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /><category term="EDM" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EDM/default.aspx" /></entry><entry><title>Quizz 9</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/14/quizz-9.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/14/quizz-9.aspx</id><published>2008-08-14T11:01:00Z</published><updated>2008-08-14T11:01:00Z</updated><content type="html">
  Pour une fois je ne vais rien vous donner à coder. Juste une question concernant la réponse que je donne pour le Quizz 8 :

static IEnumerable&amp;lt;int&amp;gt; CommonBegining(IEnumerable&amp;lt;IEnumerable&amp;lt;int&amp;gt;&amp;gt; values)
{
    return values.Aggregat...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=40966" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="C#" scheme="http://blogs.developpeur.org/matthieu/archive/tags/C_2300_/default.aspx" /><category term="Linq" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Linq/default.aspx" /><category term="Quizz" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Quizz/default.aspx" /></entry><entry><title>EF : "prescriptive classes" et "IPOCO" seulement, quelle bonne idée</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/13/ef-prescriptive-classes-et-ipoco-seulement-quelle-bonne-id-e.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/13/ef-prescriptive-classes-et-ipoco-seulement-quelle-bonne-id-e.aspx</id><published>2008-08-13T11:07:00Z</published><updated>2008-08-13T11:07:00Z</updated><content type="html">
  Certains d'entre vous ont vu passé une pétition contre l'Entity Framework que je qualifierai officiellement d'excessive afin de ne pas offenser ces signataires.
Résumons un peu le "problème". L'Entity Framework ne supporte pas POCO. Pour plus d'infor...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=40942" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="ADO" scheme="http://blogs.developpeur.org/matthieu/archive/tags/ADO/default.aspx" /><category term="EF" scheme="http://blogs.developpeur.org/matthieu/archive/tags/EF/default.aspx" /></entry><entry><title>Quizz 8</title><link rel="alternate" type="text/html" href="http://blogs.developpeur.org/matthieu/archive/2008/08/13/quizz-8.aspx" /><id>http://blogs.developpeur.org/matthieu/archive/2008/08/13/quizz-8.aspx</id><published>2008-08-13T11:05:00Z</published><updated>2008-08-13T11:05:00Z</updated><content type="html">
  
    Comme je l'ai dit dans les commentaires du Quizz 7, l'idée maintenant est de faire l'équivalent de ceci :

values.Aggregate((v1, v2) =&amp;gt; v1.TakeWhile((v, index) =&amp;gt; v2.Count() &amp;gt; index &amp;amp;&amp;amp; v == v2.ElementAt(index)));
en utilisant...&lt;img src="http://blogs.developpeur.org/aggbug.aspx?PostID=40934" width="1" height="1"&gt;</content><author><name>Matthieu MEZIL</name><uri>http://blogs.developpeur.org/members/Matthieu+MEZIL.aspx</uri></author><category term=".Net" scheme="http://blogs.developpeur.org/matthieu/archive/tags/.Net/default.aspx" /><category term="C#" scheme="http://blogs.developpeur.org/matthieu/archive/tags/C_2300_/default.aspx" /><category term="Linq" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Linq/default.aspx" /><category term="Quizz" scheme="http://blogs.developpeur.org/matthieu/archive/tags/Quizz/default.aspx" /></entry></feed>