db4o on .NET Platforms
This topic applies to .NET version only
All .NET
- .NET version of db4o uses Pascal case for method names
- Root namespace is Db4objects.Db4o (since version 6.0)
- All namespaces start with upper case letter (since version 6.0)
- Interface names have an I prefix (since version 6.0)
- .NET Reflection mechanism adds assembly name to class definition. If you use db4o database with 2 applications (client and server) you'll have to move all persistent class definitions into a shared .dll. Identical classes compiled into different executables/libraries will be treated as different.
- .NET attributes can be used for db4o configuration
- Enumerations are treated as integer types
.NET 2.0
- You can enjoy simplified syntax for Native Queries with Generics support introduced in .NET2.0.
IList <Pilot> pilots = db.Query <Pilot>(delegate(Pilot pilot) {
return pilot.Points == 100;
});
- db4o for .NET2.0 supports replication.
.NET CF 2.0
Due to some platform limitations CompactFramework 2.0 users, which use the more convenient delegate based Native Query syntax and want their queries to be optimized, are required to run the Db4oAdmin.exe command line utility on their assemblies prior to deploying them.