db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Product News from the Core Team

This blog features product news right from the core developer team, once new features and functions get checked into Subversion, available as Continuous Build every 2 hours.

Linq is here!

Hot of the presses! A new project just hit our main .net repository: Db4objects.Db4o.Linq. An optimizing linq provider for db4o.

Linq expressions are analyzed and optimized down to db4o's fast querying interface: SODA. Whenever a suitable translation cannot be found the query executes as a plain Linq for Objects query (a predicate that is tested against every object of the specified type).

Enabling Linq with db4o is as simple as:

  1. referencing Db4objects.Db4o.Linq.dll in your project
  2. importing the Db4objects.Db4o.Linq namespace

After what any IObjectContainer reference can be used as the target of Linq queries:

 

1:
2: var openIssues = from Issue i in container
3: where i.Status == "Open"
4: select i;
5:

 

Complete code for the example can be found here.

JB wrote a great critique of our implementation which I highly recommend.

Published Tuesday, February 12, 2008 8:30 PM by Rodrigo B. de Oliveira
Filed under: , , ,


Comments

 

redmoon said:

Db4Object刚刚发布了db4o的7.2beta,除了以前支持如下的平台:.NET1.1,.NET2.0,Mono外,现在还支持.NET3.5了。当然支持.NET3.5,最主要的时候要来支...

February 23, 2008 4:02 AM
 

cnblogs.com said:

Db4Object刚刚发布了db4o的7.2beta,除了以前支持如下的平台:.NET 1.1,.NET 2.0,Mono外,现在还支持.NET 3.5了。当然支持.NET 3.5,最主要的时候要来支持LINQ

February 23, 2008 4:47 AM
 

jankyBlog said:

db4o LINQ Provider

March 1, 2008 9:28 PM
 

db4o Newsletter said:

The efficiency of Transparent Persistence is added to .NET LINQ provider New “Stable” Release 6.4 is

May 22, 2008 10:17 PM
 

db4o News and Press Releases said:

Now Microsoft Compact Framework Users Can Leverage a Native ODBMS Engine with the Same LINQ Interface

October 8, 2008 10:34 AM
 

Product News from the Core Team said:

Now is the time for the newer and better Stable version - 7.4 . As usual it is available in download

December 1, 2008 3:51 PM
Anonymous comments are disabled