I have a problem with the speed of accessing the association property with a large number of records.
I have an XAF application with a parent class named MyParent.
There MyParentare 230 entries.
MyParenthas a child class with a name MyChild.
There MyChildare 49,000 entries.
I have an association defined between MyParentand in a MyChildstandard way:
In MyChild:
[Association("MyChild-MyParent")]
public MyParent MyParent;
And in MyParent:
[Association("MyChild-MyParent", typeof(MyChild))]
public XPCollection<MyCHild> MyCHildren
{
get { return GetCollection<MyCHild>("MyCHildren"); }
}
There is a special entry MyParentcalled MyParent1.
For MyParent1there are records 630 MyChild.
I have a DetailView for a class named MyUI.
MyUI DetailView, MyChild.
MyParent1 .
MyUI, MyChild .
:
[NonPersistent]
public XPCollection<MyChild> DisplayedValues
{
get
{
Session theSession;
MyParent theParentValue;
XPCollection<MyCHild> theChildren;
theParentValue = this.DropDownOne;
if theValue == null)
{
return null;
}
theChildren = theParentValue.MyChildren;
return theChildren;
}
DisplayedValues NonPersistent, DetailVIew. , , , , , .
, theParentValue = this.DropDownOne 45 .
:
- Vista Business
- 8
- 2.33 E6550
- SQL Server Express 2005
, DetailView.
-, :
, , 630 , . , 49 000, 630. 100 -down .
, . .
, , .