Created
November 4, 2010 18:14
-
-
Save mgroves/662884 to your computer and use it in GitHub Desktop.
LINQPad example file for using db4o client/server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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