Browse by Tags

All Tags » Entity Framework (EF) » C# (RSS)

PFx is good

I am sure that the Parallel Framework (PFx) will take more and more importance in future developments. However, demos often are not in phase with the reality. It’s true that a fractal demo on a 1000 cores machine is ideal for parallel demo, however in...

How to have FK in EF v1?

Before answering this question, I will start with another one: why do we need FK? to be able to change a relationship without loading the related entity but we can already do it with the EntityReference property. for the binding With the windows forms...
Posted by Matthieu MEZIL | with no comments

POCO: CreateObject and object initializer

When we work with POCO entities, queries return instances of proxy class which inherits entity types. Having some proxy instances allow us to use lazy loading. When we create an entity in order to attach it to the context, we can do a new on our entity...

French ALT .NET Demo

Last week, I spoke at an EF session for the french ALT .NET community. During its course, I made a WCF demo with EF POCO and a sort of LINQ provider in the client part . This provider is very simplistic (made in less than 15 minutes), isn't thread...

EDM Designer

I didn’t blog for a (too) long time which is strange for me. I received some emails asking if I was ok and I found in this a similitude between Scott Guthrie and myself . Lol So what did I do during my nights this last month? No I don’t sleep...

Bug with IQueryable and yield syntax: System.BadImageFormatException "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

I find a bug if you mix IQueryable and yield syntax. After Diego has changed a little bit my sample to reproduce it, this is the code he sent to the C# team: class Program { static void Main( string [] args) { try { GetCategoryProductsUsingQueryable(...

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