<syntaxhighlight lang="csharp">static Func<MyDbEntities, int, ObjectQuery<Person» QueryContactById =</syntaxhighlight>Im Entity Framework 5 werden Abfragen automatisch bei der Erstellung vorkompiliert. ###>The properties of an entity type in ADO.NET Entity Framework are fully typed, and are fully compatible with the type system used in a DBMS system, as well as the Common Type System of the .NET Framework.