Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created November 4, 2010 18:14
Show Gist options
  • Save mgroves/662884 to your computer and use it in GitHub Desktop.
Save mgroves/662884 to your computer and use it in GitHub Desktop.
LINQPad example file for using db4o client/server
<Query Kind="Program">
<Reference>C:\zproj\project\libs\Db4objects.Db4o.dll</Reference>
<Reference>C:\zproj\project\libs\Db4objects.Db4o.CS.dll</Reference>
<Reference>C:\zproj\project\libs\Db4objects.Db4o.Linq.dll</Reference>
<Reference>C:\zproj\project\arcadefinder.Entities\bin\Debug\project.Entities.dll</Reference>
<Namespace>project.Entities</Namespace>
<Namespace>Db4objects.Db4o</Namespace>
<Namespace>Db4objects.Db4o.Linq</Namespace>
<Namespace>Db4objects.Db4o.CS</Namespace>
</Query>
void Main()
{
using(var db = Db4oClientServer.OpenClient("localhost",8732,"debug-user","debug-password"))
{
var objects = (from MyEntity e in db
where e.Address == "337 Main St."
select e);
objects.Dump();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment