db4o Developer Community

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

Db4o.Binding.NET

[redirect=../Db4o_binding_for_.NET] 
Db4o.Binding.NET (formerly Db4oBindingList) is a set of classes usefull for data binding in .NET 2 and .NET 3.
Can be downloaded from the db4o Download Center

It consists of these main classes (for details look at code and its comments):
  • Db4oList
    IList implementation which uses db4o for storing its items. Basically it is virtual list holding only db4o object identifiers. It keeps only specified amount of activated objects in memory, supports querying, filtering, sorting etc.
  • PagingList
    IList implementation which adds paging features to any IList.
  • ItemProperties
    List of ItemProperty objects which enables list item (row) properties (columns) customization and supports ITypedList implementation. Works only with Windows Forms data binding.
  • Db4oBindingList
    IBindingListView and ITypedList implementation which uses PagingList and Db4oList internally.
    It is the datasource with paging, filtering, sorting, editing, etc. features which can be used to bind db4o query results directtly to a grid/table Windows Forms controls.
    It can be used with .NET 3 Windows Presentation Foundation (WPF) ItemsControl, but there are some limitations:
    • ITypedList implementation for object properties customization is ignored
    • grouping is done per page and not for entire list when paging is used
    • changed objects are saved in database only when INotifyPropertyChanged is implemented
  • Db4oCollectionView (to be done in future ;-)
    ICollectionView implementation designed for WPF...

There are sample applications showing how to use above classes in Windows Forms and Windows Presentation Foundation.

Use it and test it so that we can make it even better.
Let me know, what you think about it.

    Marek Ištvánek

About This Page

Title: Db4o.Binding.NET
Moderated By: Marek Istvanek
Created: 07-04-2006, 03:16 PM
Modified: 07-05-2007, 06:48 PM
Last Modified By: Eric Falsken
Revision Number: 9

Common Tasks

Wiki