Db4o Tree structure C# -


I am new to db4o and am trying to figure out whether it is possible:

< Pre> public class page {public sign id {get; Set;} public page guardian {get; Set;} Public IList & lt; Page & gt; Children {receive; Set;} public string name {get; Set;} public string depth {get; Set;}}

When I save the page, then I have only parent ie IE

  page page = new page () {ID = Guid.NewGuid (), name = "p1", parent = null}; Page 2 = new page () {ID = Guid.NewGuid (), name = "p2", parent = p1}; Page page 3 = new page () {ID = Guid.NewGuid (), name = "p3", parent = p1};  

When I load P1, what happens to populate two children?

DB4O will also load P1 with datastore as well as load the collection of children , So yes it is possible ...


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -