Deepdata with FieldManager

Deepdata with FieldManager

Old forum URL: forums.lhotka.net/forums/t/5677.aspx


alef posted on Sunday, October 26, 2008

How do I write the deepdata example with the use of the FieldManager in CSLA 3.5.2.

In particular the following code (class OrderInfo.cs):

private LineItemList _lineItems = LineItemList.NewList();

///<summary>

///</summary>

public LineItemList LineItems

{

get

{

return _lineItems;

}

}

 

internal void LoadItem(SafeDataReader data)

{

_lineItems.LoadChild(data);

}

internal void LoadDetail(SafeDataReader data)

{

_lineItems.FindById(data.GetInt32("LineId")).LoadDetail(data);

}

Copyright (c) Marimer LLC